summaryrefslogtreecommitdiff
path: root/audio/tremor/patches/patch-misc.h
diff options
context:
space:
mode:
Diffstat (limited to 'audio/tremor/patches/patch-misc.h')
-rw-r--r--audio/tremor/patches/patch-misc.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/audio/tremor/patches/patch-misc.h b/audio/tremor/patches/patch-misc.h
new file mode 100644
index 00000000000..87b1b42c90e
--- /dev/null
+++ b/audio/tremor/patches/patch-misc.h
@@ -0,0 +1,22 @@
+$NetBSD: patch-misc.h,v 1.1 2012/01/11 20:58:09 hans Exp $
+
+--- misc.h.orig 2003-03-31 01:40:56.000000000 +0200
++++ misc.h 2012-01-02 18:16:15.405713912 +0100
+@@ -30,6 +30,17 @@
+
+ #include <sys/types.h>
+
++#ifdef __sun
++#include <sys/byteorder.h>
++#define LITTLE_ENDIAN 1234
++#define BIG_ENDIAN 4321
++#ifdef _LITTLE_ENDIAN
++#define BYTE_ORDER LITTLE_ENDIAN
++#else
++#define BYTE_ORDER BIG_ENDIAN
++#endif
++#endif
++
+ #if BYTE_ORDER==LITTLE_ENDIAN
+ union magic {
+ struct {