opnsense-ports/multimedia/libmpeg3/files/patch-mpeg3ifo.c
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01: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.