pkgsrc/audio/rioutil/patches/patch-ae
joerg 38a8af5d16 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.
2007-02-02 15:58:58 +00:00

14 lines
443 B
Text

$NetBSD: patch-ae,v 1.3 2007/02/02 15:58:58 joerg Exp $
--- include/rioi.h.orig 2006-08-04 22:40:49.000000000 +0000
+++ include/rioi.h
@@ -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)