summaryrefslogtreecommitdiffstats
path: root/audio/xanalyser/files/patch-src_pcm-wav.cc
blob: 7992d849d6dd14a34cffd47bbe43ec4b7548673d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- src/pcm-wav.cc.orig	2007-03-15 18:23:10 UTC
+++ src/pcm-wav.cc
@@ -14,6 +14,16 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <iostream>
+#ifdef __NetBSD__
+#  include <machine/byte_swap.h>
+#elif __FreeBSD__
+#  include <sys/endian.h>
+#  define	__BYTE_ORDER	_BYTE_ORDER
+#  define	__LITTLE_ENDIAN	_LITTLE_ENDIAN
+#  define	__BIG_ENDIAN	_BIG_ENDIAN
+#else
+#  include <byteswap.h>
+#endif
 
 using std::cerr;
 
OpenPOWER on IntegriCloud