summaryrefslogtreecommitdiff
path: root/audio/alsa-utils/patches/patch-ad
diff options
context:
space:
mode:
Diffstat (limited to 'audio/alsa-utils/patches/patch-ad')
-rw-r--r--audio/alsa-utils/patches/patch-ad17
1 files changed, 17 insertions, 0 deletions
diff --git a/audio/alsa-utils/patches/patch-ad b/audio/alsa-utils/patches/patch-ad
new file mode 100644
index 00000000000..da9cb4d2bbf
--- /dev/null
+++ b/audio/alsa-utils/patches/patch-ad
@@ -0,0 +1,17 @@
+$NetBSD: patch-ad,v 1.1.1.1 2008/12/19 03:33:45 jmcneill Exp $
+
+--- speaker-test/speaker-test.c.orig 2008-12-18 22:24:52.000000000 -0500
++++ speaker-test/speaker-test.c
+@@ -47,7 +47,12 @@
+ #ifdef ENABLE_NLS
+ #include <locale.h>
+ #endif
++#ifdef __NetBSD__
++#include <sys/endian.h>
++#define ESTRPIPE EPIPE
++#else
+ #include <byteswap.h>
++#endif
+
+ #define ALSA_PCM_NEW_HW_PARAMS_API
+ #define ALSA_PCM_NEW_SW_PARAMS_API