70986b479c
tree just need that library, the player in mpeg4ip just causes an unwanted dependency on SDL and complications due to plugin building
17 lines
580 B
Text
17 lines
580 B
Text
$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
|