32 lines
852 B
Text
32 lines
852 B
Text
$NetBSD: patch-ac,v 1.3 2005/07/13 13:16:36 wiz Exp $
|
|
|
|
--- mpeg3ifo.c.orig 2001-05-20 05:05:26.000000000 +0200
|
|
+++ mpeg3ifo.c
|
|
@@ -1,10 +1,26 @@
|
|
-#include <byteswap.h>
|
|
#include <dirent.h>
|
|
#include <fcntl.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <sys/types.h>
|
|
|
|
+#if defined(__NetBSD__)
|
|
+# include <sys/endian.h>
|
|
+# include <machine/bswap.h>
|
|
+# define bswap_16(x) bswap16(x)
|
|
+# define bswap_32(x) bswap32(x)
|
|
+#elif defined(__DragonFly__)
|
|
+# include <sys/endian.h>
|
|
+# define bswap_16(x) bswap16(x)
|
|
+# define bswap_32(x) bswap32(x)
|
|
+#elif defined(linux)
|
|
+# include <byteswap.h>
|
|
+#elif defined(__APPLE__) || defined(__MACH__) /* MacOS X */
|
|
+# include <libkern/OSByteOrder.h>
|
|
+# define bswap_16(x) OSSwapInt16(x)
|
|
+# define bswap_32(x) OSSwapInt32(x)
|
|
+#endif
|
|
+
|
|
#include "ifo.h"
|
|
#include "mpeg3private.h"
|
|
#include "mpeg3protos.h"
|