summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Klausner <wiz@danbala.tuwien.ac.at>2014-12-01 09:50:24 +0100
committerTim-Philipp Müller <tim@centricular.com>2014-12-11 14:20:51 +0000
commit89095e7f91cfbfe625ec2522da49053f1f98baf8 (patch)
tree04de5938dd7c98e8b5dee192225d527282309447
parent35c40171933cae4969b13e258cc219047dd35952 (diff)
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
-rw-r--r--ext/alsa/gstalsasink.c4
-rw-r--r--ext/alsa/gstalsasrc.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/ext/alsa/gstalsasink.c b/ext/alsa/gstalsasink.c
index 7d7b443ec..ad8803a90 100644
--- a/ext/alsa/gstalsasink.c
+++ b/ext/alsa/gstalsasink.c
@@ -52,6 +52,10 @@
#include <gst/audio/gstaudioiec61937.h>
#include <gst/gst-i18n-plugin.h>
+#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 43b82b12f..28bc49884 100644
--- a/ext/alsa/gstalsasrc.c
+++ b/ext/alsa/gstalsasrc.c
@@ -49,6 +49,10 @@
#include <gst/gst-i18n-plugin.h>
+#ifndef ESTRPIPE
+#define ESTRPIPE EPIPE
+#endif
+
#define DEFAULT_PROP_DEVICE "default"
#define DEFAULT_PROP_DEVICE_NAME ""
#define DEFAULT_PROP_CARD_NAME ""