$OpenBSD: patch-import_nuv_rtjpeg_aud_plugin_c,v 1.2 2004/06/24 19:27:00 sturm Exp $
--- import/nuv/rtjpeg_aud_plugin.c.orig	2003-04-08 03:49:49.000000000 -0700
+++ import/nuv/rtjpeg_aud_plugin.c	2004-05-03 11:34:28.000000000 -0700
@@ -28,6 +28,9 @@
 #endif
 #endif
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
 #ifdef	__linux__
 #include <features.h>
 #endif
@@ -108,7 +111,7 @@ int rtjpeg_aud_open(char *tplorg)
     regions[0].end   = -1;
   }
 
-#if defined(__FreeBSD__) || defined(__APPLE__) 
+#ifdef SYS_BSD
   rtjpeg_aud_file=open(tplorg, O_RDONLY);
 #else 
   rtjpeg_aud_file=open(tplorg, O_RDONLY|O_LARGEFILE);
