ports/multimedia/libmpeg3/files/patch-mpeg3ifo.c
Pav Lucistnik c83e454185 - Update to 1.8
PR:		ports/130466
Submitted by:	KATO Tsuguru <tkato432@yahoo.com>
2009-01-20 22:55:08 +00:00

21 lines
484 B
C

--- mpeg3ifo.c.orig 2007-12-17 08:25:26.000000000 +0900
+++ mpeg3ifo.c 2008-09-11 05:39:21.000000000 +0900
@@ -1,4 +1,4 @@
-#include <byteswap.h>
+//#include <byteswap.h>
#include <dirent.h>
#include <fcntl.h>
#include <stdlib.h>
@@ -10,6 +10,12 @@
#include "mpeg3private.h"
#include "mpeg3protos.h"
+#ifdef __FreeBSD__
+#include <sys/endian.h>
+#define bswap_16(x) bswap16(x)
+#define bswap_32(x) bswap32(x)
+#endif
+
typedef struct
{
// Bytes relative to start of stream.