aboutsummaryrefslogtreecommitdiff
path: root/multimedia/libdvdread
diff options
context:
space:
mode:
authorMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2004-11-14 03:54:44 +0000
committerMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2004-11-14 03:54:44 +0000
commitcdd19ce36747ebc6ca64447b30327d85fbb7a55c (patch)
tree8de58a7593978ce128aedcb4d97d4c0e178e0edc /multimedia/libdvdread
parent40cdf8297ab377e77702798f9cdf58444c52f4f8 (diff)
downloadports-cdd19ce36747ebc6ca64447b30327d85fbb7a55c.tar.gz
ports-cdd19ce36747ebc6ca64447b30327d85fbb7a55c.zip
Notes
Diffstat (limited to 'multimedia/libdvdread')
-rw-r--r--multimedia/libdvdread/files/patch-dvdread::bswap.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/multimedia/libdvdread/files/patch-dvdread::bswap.h b/multimedia/libdvdread/files/patch-dvdread::bswap.h
index 4bb3524c93dc..02bb51851df8 100644
--- a/multimedia/libdvdread/files/patch-dvdread::bswap.h
+++ b/multimedia/libdvdread/files/patch-dvdread::bswap.h
@@ -1,10 +1,12 @@
---- dvdread/bswap.h.orig Wed Mar 5 23:13:17 2003
-+++ dvdread/bswap.h Wed Mar 5 23:14:24 2003
-@@ -57,7 +57,15 @@
+--- dvdread/bswap.h.orig Sat Nov 13 17:18:54 2004
++++ dvdread/bswap.h Sat Nov 13 18:01:26 2004
+@@ -57,7 +57,19 @@
#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)
++# if __FreeBSD_version >= 510000
+ #define B2N_64(x) x = be64toh(x)
++# else
+#define B2N_64(x) x = \
+ x = ((((x) & 0xff00000000000000) >> 56) | \
+ (((x) & 0x00ff000000000000) >> 40) | \
@@ -14,6 +16,7 @@
+ (((x) & 0x0000000000ff0000) << 24) | \
+ (((x) & 0x000000000000ff00) << 40) | \
+ (((x) & 0x00000000000000ff) << 56))
++# endif
/* This is a slow but portable implementation, it has multiple evaluation
* problems so beware.