diff options
Diffstat (limited to 'audio/spiralloops/patches/patch-aj')
-rw-r--r-- | audio/spiralloops/patches/patch-aj | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/audio/spiralloops/patches/patch-aj b/audio/spiralloops/patches/patch-aj index 28b6a13231a..126bcd43d9d 100644 --- a/audio/spiralloops/patches/patch-aj +++ b/audio/spiralloops/patches/patch-aj @@ -1,4 +1,4 @@ -$NetBSD: patch-aj,v 1.2 2011/11/23 08:20:38 marino Exp $ +$NetBSD: patch-aj,v 1.3 2012/02/15 22:47:31 hans Exp $ --- SpiralSound/RiffWav.C.orig 2001-04-19 20:48:12.000000000 +0000 +++ SpiralSound/RiffWav.C @@ -11,7 +11,25 @@ $NetBSD: patch-aj,v 1.2 2011/11/23 08:20:38 marino Exp $ #include <fstream> #include <stdio.h> #include <stdlib.h> -@@ -55,7 +55,7 @@ WavFile::HeaderInfo::HeaderInfo() : Riff +@@ -26,6 +26,17 @@ + #include <sys/stat.h> + #include <fcntl.h> + ++#ifdef __sun ++#include <sys/byteorder.h> ++#define LITTLE_ENDIAN 1234 ++#define BIG_ENDIAN 4321 ++#ifdef _BIG_ENDIAN ++#define __BYTE_ORDER BIG_ENDIAN ++#else ++#define __BYTE_ORDER LITTLE_ENDIAN ++#endif ++#endif ++ + const int HEADERLEN = (4+24+8); + + #if __BYTE_ORDER == BIG_ENDIAN +@@ -55,7 +66,7 @@ WavFile::HeaderInfo::HeaderInfo() : Riff #endif } |