summaryrefslogtreecommitdiff
path: root/audio/alsa-utils/patches/patch-ad
blob: c893e32ef044fe640abfa61ba1d149fab8143328 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$NetBSD: patch-ad,v 1.5 2012/02/15 19:46:31 hans Exp $

--- speaker-test/speaker-test.c.orig	2009-12-16 15:18:52.000000000 +0000
+++ speaker-test/speaker-test.c
@@ -44,7 +44,18 @@
 #include <getopt.h>
 #include <inttypes.h>
 #include <ctype.h>
+#if defined(__NetBSD__) || defined(__DragonFly__)
+#include <sys/endian.h>
+#define bswap_16 bswap16
+#define bswap_32 bswap32
+#define ESTRPIPE EPIPE
+#elif defined(__sun)
+#include <sys/byteorder.h>
+#define bswap_16 BSWAP_16
+#define bswap_32 BSWAP_32
+#else
 #include <byteswap.h>
+#endif
 
 #define ALSA_PCM_NEW_HW_PARAMS_API
 #define ALSA_PCM_NEW_SW_PARAMS_API