diff options
author | joerg <joerg@pkgsrc.org> | 2007-02-02 15:58:58 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2007-02-02 15:58:58 +0000 |
commit | 1e69987416755db43afd59fbb26bf2db1613d054 (patch) | |
tree | 189ea9838a5ec8c8e6dee04e6915fd86671561ce /audio/rioutil/patches | |
parent | b16eb99d2ffa6100cd1183cff79c939aaed7772e (diff) | |
download | pkgsrc-1e69987416755db43afd59fbb26bf2db1613d054.tar.gz |
Include sys/endian.h on NetBSD as well as it allows to use the same
handling for DragonFly and NetBSD. Kill the redundant second chunk.
Diffstat (limited to 'audio/rioutil/patches')
-rw-r--r-- | audio/rioutil/patches/patch-ae | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/audio/rioutil/patches/patch-ae b/audio/rioutil/patches/patch-ae index 3f9a1a410ba..674102213fc 100644 --- a/audio/rioutil/patches/patch-ae +++ b/audio/rioutil/patches/patch-ae @@ -1,23 +1,14 @@ -$NetBSD: patch-ae,v 1.2 2007/01/06 04:21:24 schmonz Exp $ +$NetBSD: patch-ae,v 1.3 2007/02/02 15:58:58 joerg Exp $ ---- include/rioi.h.orig 2006-08-04 18:40:49.000000000 -0400 +--- include/rioi.h.orig 2006-08-04 22:40:49.000000000 +0000 +++ include/rioi.h -@@ -190,7 +190,7 @@ Group ID 0x7c ???? +@@ -190,7 +190,8 @@ Group ID 0x7c ???? #define bswap_32(x) NXSwapLong(x) #define bswap_16(x) NXSwapShort(x) -#elif defined (__NetBSD__) +#elif defined (__NetBSD__) || defined(__DragonFly__) ++#include <sys/endian.h> #define bswap_64(x) bswap64(x) #define bswap_32(x) bswap32(x) -@@ -203,6 +203,9 @@ Group ID 0x7c ???? - #define bswap_32(x) ((x >> 24) | (x & 0x00ff0000) >> 8 | (x & 0x0000ff00) << 8 | (x & 0x000000ff) << 24) - #define bswap_16(x) ((x >> 8) | (x & 0x00ff) << 8) - -+#elif defined(__DragonFly__) -+#include <sys/endian.h> -+ - #else - - #include <sys/endian.h> |