freebsd-ports/audio/xanalyser/files/patch-src_pcm-cdr.cc
Diane Bruce 74786e1406 - cleanup non-supported [1] (with changes)
- update to 1.30 [2]

PR:		ports/111694 [1]
Submitted by:	edwin [1], Diane Bruce (maintainer) [2]
Approved by:	ehaupt (mentor)
2007-04-20 21:27:48 +00:00

19 lines
455 B
C++

--- src/pcm-cdr.cc.orig Mon Apr 16 17:23:03 2007
+++ src/pcm-cdr.cc Mon Apr 16 17:25:16 2007
@@ -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;