From: SASANO Takayoshi Date: Thu, 2 Feb 2023 06:58:47 +0000 (+0900) Subject: type_compat.h: use ESPIPE instead of EPIPE when ESTRPIPE not defined X-Git-Tag: v1.2.9~15 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=3b4cdbdf19c70255d2d4c31b5a7d5ae2548eb9ef;p=alsa-lib.git type_compat.h: use ESPIPE instead of EPIPE when ESTRPIPE not defined Fixes: https://github.com/alsa-project/alsa-lib/pull/298 Signed-off-by: SASANO Takayoshi Signed-off-by: Jaroslav Kysela --- diff --git a/include/type_compat.h b/include/type_compat.h index 000057f1..b43379c0 100644 --- a/include/type_compat.h +++ b/include/type_compat.h @@ -26,7 +26,7 @@ #define EBADFD EBADF #endif #ifndef ESTRPIPE -#define ESTRPIPE EPIPE +#define ESTRPIPE ESPIPE #endif #ifndef __u16 diff --git a/test/pcm.c b/test/pcm.c index b8d4fe69..0484ea39 100644 --- a/test/pcm.c +++ b/test/pcm.c @@ -12,6 +12,10 @@ #include #include +#ifndef ESTRPIPE +#define ESTRPIPE ESPIPE +#endif + static char *device = "plughw:0,0"; /* playback device */ static snd_pcm_format_t format = SND_PCM_FORMAT_S16; /* sample format */ static unsigned int rate = 44100; /* stream rate */