diff options
Diffstat (limited to 'audio/tremor-tools/patches/patch-ad')
-rw-r--r-- | audio/tremor-tools/patches/patch-ad | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/audio/tremor-tools/patches/patch-ad b/audio/tremor-tools/patches/patch-ad index 7f61d9196fa..ff613405e75 100644 --- a/audio/tremor-tools/patches/patch-ad +++ b/audio/tremor-tools/patches/patch-ad @@ -1,8 +1,26 @@ -$NetBSD: patch-ad,v 1.2 2011/03/20 19:13:16 shattered Exp $ +$NetBSD: patch-ad,v 1.3 2012/02/15 23:05:28 hans Exp $ --- ogg123/ogg123.c.orig 2002-07-06 19:12:18.000000000 +0000 +++ ogg123/ogg123.c -@@ -453,6 +453,16 @@ void play (char *source_string) +@@ -32,6 +32,17 @@ + #include <unistd.h> + #include <locale.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 ++ + #include "audio.h" + #include "buffer.h" + #include "callbacks.h" +@@ -453,6 +464,16 @@ void play (char *source_string) return; } @@ -19,7 +37,7 @@ $NetBSD: patch-ad,v 1.2 2011/03/20 19:13:16 shattered Exp $ /* Decide which statistics are valid */ select_stats(stat_format, &options, source, decoder, audio_buffer); -@@ -580,7 +590,13 @@ void play (char *source_string) +@@ -580,7 +601,13 @@ void play (char *source_string) format->cleanup(decoder); transport->close(source); |