ports/audio/ccaudio2/files/patch-src_oss.cpp
Pietro Cerutti b1f5de69f7 - Update to 2.1.2
Changes:

  from ccaudio2 2.1.1 to ccaudio2 2.1.2
  - fixed cmake shared library builds
  - windows audio fixups

  from ccaudio2 2.1.0 to ccaudio2 2.1.1
  - fixed library naming in CMakeLists.txt
  - updated spec files
  - updated lib .so name

  from ccaudio2 2.0.5 to ccaudio2 2.1.0
  - modernized automake
  - patches from Brandon Invergo for current ucommon
  - various code cleanups

- Fix MASTER_SITE, general description and WWW line in pkg-descr
2014-05-20 08:39:56 +00:00

16 lines
442 B
C++

--- src/oss.cpp.orig 2014-01-28 20:43:54.000000000 +0100
+++ src/oss.cpp 2014-05-20 10:23:04.000000000 +0200
@@ -20,6 +20,13 @@
#include <ccaudio2-config.h>
#include <math.h>
+#ifdef __FreeBSD__
+#include <sys/endian.h>
+#define __LITTLE_ENDIAN (_BYTE_ORDER == _LITTLE_ENDIAN)
+#define __BIG_ENDIAN (_BYTE_ORDER == _BIG_ENDIAN)
+#define __BYTE_ORDER _BYTE_ORDER
+#endif
+
extern int _oss_ccaudio_dummy;
int _oss_ccaudio_dummy = 0;