summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Klausner <wiz@danbala.tuwien.ac.at>2014-12-01 09:50:24 +0100
committerSebastian Dröge <sebastian@centricular.com>2014-12-01 09:51:12 +0100
commita4b94e6c69525e404354cbd3d0b67ae7e001f385 (patch)
tree5a0c2e4e2a0bc92568a78d806062952577a8975f
parent90eb93c2eff102e877bc3fd57c36c39490995da1 (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 16eef71f3..5c6a95899 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 2215e39a6..6d11ba412 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 ""