summaryrefslogtreecommitdiff
path: root/multimedia/libmp4v2/patches/patch-ac
blob: 11f6cd28c078a4b17e61bdf7c399aec9df1ea036 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$NetBSD: patch-ac,v 1.1.1.1 2007/02/09 19:57:48 drochner Exp $

--- include/mpeg4ip_byteswap.h.orig	2006-04-28 09:17:18.000000000 +0000
+++ include/mpeg4ip_byteswap.h
@@ -50,6 +50,12 @@
 #define B2N_32(x) x = swap32(x)
 #define B2N_64(x) x = swap64(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