diff options
Diffstat (limited to 'audio/alsa-lib/patches/patch-ac')
-rw-r--r-- | audio/alsa-lib/patches/patch-ac | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/audio/alsa-lib/patches/patch-ac b/audio/alsa-lib/patches/patch-ac index 8001b325f25..fcf0488f5fd 100644 --- a/audio/alsa-lib/patches/patch-ac +++ b/audio/alsa-lib/patches/patch-ac @@ -1,13 +1,22 @@ -$NetBSD: patch-ac,v 1.2 2008/12/25 13:18:00 hasso Exp $ +$NetBSD: patch-ac,v 1.3 2012/02/15 19:43:51 hans Exp $ --- include/asoundlib-head.h.orig 2008-12-18 22:01:21.000000000 -0500 +++ include/asoundlib-head.h -@@ -34,7 +34,11 @@ +@@ -34,7 +34,20 @@ #include <string.h> #include <fcntl.h> #include <assert.h> +#if defined(__NetBSD__) || defined(__DragonFly__) +#include <sys/endian.h> ++#elif defined(__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 +#else #include <endian.h> +#endif |