summaryrefslogtreecommitdiff
path: root/multimedia/mplayer-share/patches/patch-dh
blob: 926780759b4e5aedc810ddedd095faeca4cffdd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- libmpdvdkit2/bswap.h.orig	2005-05-20 20:12:12.000000000 +0200
+++ libmpdvdkit2/bswap.h	2005-05-20 20:13:32.000000000 +0200
@@ -88,12 +88,17 @@
 }
 #define B2N_64(x) x = bswap_64(x)
 
+#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)
+
 /* This is a slow but portable implementation, it has multiple evaluation 
  * problems so beware.
  * FreeBSD and Solaris don't have <byteswap.h> or any other such 
  * functionality! 
  */
-
 #elif defined(__FreeBSD__) || defined(__sun) || defined(__bsdi__) || defined(__CYGWIN__)
 #define B2N_16(x) \
  x = ((((x) & 0xff00) >> 8) | \