]> git.alsa-project.org Git - alsa-plugins.git/commitdiff
use EPIPE and EBADF when ESTRPIPE and EBADFD unsupported
authorSASANO Takayoshi <uaa@uaa.org.uk>
Tue, 3 Jan 2023 08:34:49 +0000 (17:34 +0900)
committerJaroslav Kysela <perex@perex.cz>
Mon, 10 Jun 2024 09:03:44 +0000 (11:03 +0200)
Closes: https://github.com/alsa-project/alsa-plugins/pull/48
Signed-off-by: SASANO Takayoshi <uaa@uaa.org.uk>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
a52/pcm_a52.c
pulse/pulse.h

index 9da8897db696427ae754a6c23a5f7d45a846c7c0..2bebccc8109f1ff726a8d72c9b7fb5e809d693c5 100644 (file)
 #include <libavcodec/avcodec.h>
 #include <libavutil/avutil.h>
 
+#ifndef ESTRPIPE
+#define ESTRPIPE EPIPE
+#endif
+
 /* some compatibility wrappers */
 #ifndef AV_VERSION_INT
 #define AV_VERSION_INT(a, b, c) (((a) << 16) | ((b) << 8) | (c))
index 19e90ff6d095bad503113149bc4c003ecd8dfa1c..4ba38f41cbbc1a2bf7824ca7fa232d38074da2e1 100644 (file)
 
 #include <pulse/pulseaudio.h>
 
+#ifndef EBADFD
+#define EBADFD EBADF
+#endif
+
 #define ARRAY_SIZE(a) (sizeof(a)/sizeof((a)[0]))
 
 typedef struct snd_pulse {