From a4b94e6c69525e404354cbd3d0b67ae7e001f385 Mon Sep 17 00:00:00 2001 From: Thomas Klausner Date: Mon, 1 Dec 2014 09:50:24 +0100 Subject: [PATCH] alsa: Use EPIPE instead of ESTRPIPE if the latter does not exist NetBSD does not have ESTRPIPE. https://bugzilla.gnome.org/show_bug.cgi?id=740952 --- ext/alsa/gstalsasink.c | 4 ++++ ext/alsa/gstalsasrc.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/ext/alsa/gstalsasink.c b/ext/alsa/gstalsasink.c index 16eef71f37..5c6a95899b 100644 --- a/ext/alsa/gstalsasink.c +++ b/ext/alsa/gstalsasink.c @@ -52,6 +52,10 @@ #include #include +#ifndef ESTRPIPE +#define ESTRPIPE EPIPE +#endif + #define DEFAULT_DEVICE "default" #define DEFAULT_DEVICE_NAME "" #define DEFAULT_CARD_NAME "" diff --git a/ext/alsa/gstalsasrc.c b/ext/alsa/gstalsasrc.c index 2215e39a6a..6d11ba4123 100644 --- a/ext/alsa/gstalsasrc.c +++ b/ext/alsa/gstalsasrc.c @@ -49,6 +49,10 @@ #include +#ifndef ESTRPIPE +#define ESTRPIPE EPIPE +#endif + #define DEFAULT_PROP_DEVICE "default" #define DEFAULT_PROP_DEVICE_NAME "" #define DEFAULT_PROP_CARD_NAME ""