diff options
Diffstat (limited to 'multimedia/libdvdread/patches/patch-aa')
-rw-r--r-- | multimedia/libdvdread/patches/patch-aa | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/multimedia/libdvdread/patches/patch-aa b/multimedia/libdvdread/patches/patch-aa index 7ed5920ba18..8bd878a28fc 100644 --- a/multimedia/libdvdread/patches/patch-aa +++ b/multimedia/libdvdread/patches/patch-aa @@ -1,12 +1,22 @@ -$NetBSD: patch-aa,v 1.2 2005/03/10 14:21:45 tv Exp $ +$NetBSD: patch-aa,v 1.3 2005/05/25 17:11:52 drochner Exp $ ---- dvdread/bswap.h.orig 2002-12-14 19:09:12.000000000 -0500 +--- dvdread/bswap.h.orig 2002-12-15 01:09:12.000000000 +0100 +++ dvdread/bswap.h -@@ -57,7 +57,15 @@ +@@ -53,19 +53,33 @@ + #define B2N_32(x) x = swap32(x) + #define B2N_64(x) x = swap64(x) + +-#elif defined(__FreeBSD__) && __FreeBSD_version >= 470000 ++#elif defined(__DragonFly__) #include <sys/endian.h> #define B2N_16(x) x = be16toh(x) #define B2N_32(x) x = be32toh(x) --#define B2N_64(x) x = be64toh(x) + #define B2N_64(x) x = be64toh(x) + ++#elif defined(__FreeBSD__) && __FreeBSD_version >= 470000 ++#include <sys/endian.h> ++#define B2N_16(x) x = be16toh(x) ++#define B2N_32(x) x = be32toh(x) +#define B2N_64(x) x = \ + ((((x) & 0xff00000000000000) >> 56) | \ + (((x) & 0x00ff000000000000) >> 40) | \ @@ -16,10 +26,10 @@ $NetBSD: patch-aa,v 1.2 2005/03/10 14:21:45 tv Exp $ + (((x) & 0x0000000000ff0000) << 24) | \ + (((x) & 0x000000000000ff00) << 40) | \ + (((x) & 0x00000000000000ff) << 56)) - ++ /* This is a slow but portable implementation, it has multiple evaluation * problems so beware. -@@ -65,7 +73,7 @@ + * Old FreeBSD's and Solaris don't have <byteswap.h> or any other such * functionality! */ |