pkgsrc/multimedia/mpeg4ip/patches/patch-ac

17 lines
573 B
Text

$NetBSD: patch-ac,v 1.1 2006/04/28 10:02:41 joerg 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