summaryrefslogtreecommitdiff
path: root/audio/maplay/patches/patch-af
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2002-06-27 15:52:11 +0000
committeragc <agc@pkgsrc.org>2002-06-27 15:52:11 +0000
commit5c5fe9fed14f6c6fb75401a35656c340128e2561 (patch)
treea0a3b23a34ba3af51eb043e9aacecee9a317b27b /audio/maplay/patches/patch-af
parent58833af2ab714b5b088f8e9537cbeb94ed36d7b6 (diff)
downloadpkgsrc-5c5fe9fed14f6c6fb75401a35656c340128e2561.tar.gz
Fix a compilation problem on 1.6 and above.
Split patch files out into one file per patch-file.
Diffstat (limited to 'audio/maplay/patches/patch-af')
-rw-r--r--audio/maplay/patches/patch-af35
1 files changed, 35 insertions, 0 deletions
diff --git a/audio/maplay/patches/patch-af b/audio/maplay/patches/patch-af
new file mode 100644
index 00000000000..214365f126b
--- /dev/null
+++ b/audio/maplay/patches/patch-af
@@ -0,0 +1,35 @@
+$NetBSD: patch-af,v 1.1 2002/06/27 15:52:16 agc Exp $
+
+--- ibitstream.cc 2002/06/27 15:41:04 1.1
++++ ibitstream.cc 2002/06/27 15:41:40
+@@ -33,6 +33,12 @@
+ #include "all.h"
+ #include "ibitstream.h"
+
++#ifdef NETBSD
++#include <machine/endian.h>
++#if BYTE_ORDER == LITTLE_ENDIAN
++#define DAMN_INTEL_BYTE_ORDER
++#endif
++#endif
+
+ #define swap_int32(int_32) (((int_32) << 24) | (((int_32) << 8) & 0x00ff0000) | \
+ (((int_32) >> 8) & 0x0000ff00) | ((int_32) >> 24))
+@@ -64,7 +70,7 @@
+ }
+
+
+-bool Ibitstream::get_header (uint32 *headerstring)
++boolean Ibitstream::get_header (uint32 *headerstring)
+ {
+ int readvalue;
+
+@@ -102,7 +108,7 @@
+ }
+
+
+-bool Ibitstream::read_frame (uint32 bytesize)
++boolean Ibitstream::read_frame (uint32 bytesize)
+ {
+ int readvalue;
+