$NetBSD$

--- libmpeg3/mpeg3ifo.c.orig	2010-02-01 08:26:23.000000000 +0000
+++ libmpeg3/mpeg3ifo.c
@@ -1,4 +1,3 @@
-#include <byteswap.h>
 #include <dirent.h>
 #include <fcntl.h>
 #include <stdlib.h>
@@ -6,10 +5,19 @@
 #include <sys/types.h>
 #include <unistd.h>
 
+#include "config.h"
 #include "ifo.h"
 #include "mpeg3private.h"
 #include "mpeg3protos.h"
 
+#define bswap_16(x) ((((x) << 8) & 0xff00) | \
+                     (((x) >> 8) & 0x00ff))
+
+#define bswap_32(x) ((((x) << 24) & 0xff000000) | \
+                     (((x) <<  8) & 0x00ff0000) | \
+                     (((x) >>  8) & 0x0000ff00) | \
+                     (((x) >> 24) & 0x000000ff))
+
 typedef struct
 {
 // Bytes relative to start of stream.
