From c075fa85c77313aadcdf78e18baf37533f6d5134 Mon Sep 17 00:00:00 2001 From: SASANO Takayoshi Date: Tue, 3 Jan 2023 17:34:49 +0900 Subject: [PATCH] use EPIPE and EBADF when ESTRPIPE and EBADFD unsupported Closes: https://github.com/alsa-project/alsa-plugins/pull/48 Signed-off-by: SASANO Takayoshi Signed-off-by: Jaroslav Kysela --- a52/pcm_a52.c | 4 ++++ pulse/pulse.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/a52/pcm_a52.c b/a52/pcm_a52.c index 9da8897..2bebccc 100644 --- a/a52/pcm_a52.c +++ b/a52/pcm_a52.c @@ -28,6 +28,10 @@ #include #include +#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)) diff --git a/pulse/pulse.h b/pulse/pulse.h index 19e90ff..4ba38f4 100644 --- a/pulse/pulse.h +++ b/pulse/pulse.h @@ -24,6 +24,10 @@ #include +#ifndef EBADFD +#define EBADFD EBADF +#endif + #define ARRAY_SIZE(a) (sizeof(a)/sizeof((a)[0])) typedef struct snd_pulse { -- 2.47.1