summaryrefslogtreecommitdiff
path: root/audio/alsa-lib/patches/patch-ac
blob: e5a1083e6f2d413cddc46b0634b337379b54351b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
$NetBSD: patch-ac,v 1.4 2014/03/25 23:06:07 asau Exp $

--- include/asoundlib-head.h.orig	2008-12-18 22:01:21.000000000 -0500
+++ include/asoundlib-head.h
@@ -34,7 +34,20 @@
 #include <string.h>
 #include <fcntl.h>
 #include <assert.h>
+#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__)
+#include <sys/endian.h>
+#elif defined(__sun)
+#include <sys/byteorder.h>
+#define __LITTLE_ENDIAN 1234
+#define __BIG_ENDIAN 4321
+#ifdef _BIG_ENDIAN
+#define __BYTE_ORDER __BIG_ENDIAN
+#else
+#define __BYTE_ORDER __LITTLE_ENDIAN
+#endif
+#else
 #include <endian.h>
+#endif
 #include <sys/poll.h>
 #include <errno.h>
 #include <stdarg.h>