]> git.alsa-project.org Git - alsa-lib.git/commitdiff
type_compat.h: use ESPIPE instead of EPIPE when ESTRPIPE not defined
authorSASANO Takayoshi <uaa@uaa.org.uk>
Thu, 2 Feb 2023 06:58:47 +0000 (15:58 +0900)
committerJaroslav Kysela <perex@perex.cz>
Fri, 3 Feb 2023 12:21:54 +0000 (13:21 +0100)
Fixes: https://github.com/alsa-project/alsa-lib/pull/298
Signed-off-by: SASANO Takayoshi <uaa@uaa.org.uk>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
include/type_compat.h
test/pcm.c

index 000057f1c2bc4c6dfa076a6f67019836fc14e824..b43379c00f36d22c4185971104fdb640644d673e 100644 (file)
@@ -26,7 +26,7 @@
 #define EBADFD EBADF
 #endif
 #ifndef ESTRPIPE
-#define ESTRPIPE EPIPE
+#define ESTRPIPE ESPIPE
 #endif
 
 #ifndef __u16
index b8d4fe693fe67c9dc563271bc17cb004cb0522e8..0484ea395e8296f3b81834854ae1d2d3e6aa157b 100644 (file)
 #include <sys/time.h>
 #include <math.h>
 
+#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 */