Credit Andrew with NetBSD build fixes
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / dvdcreate.C
index 175ef5477ceb24c39c5a5b680af513d163e3cc4f..72259b270ff1f517b6fd1a5366d9f2011fdc1dc3 100644 (file)
 #include <errno.h>
 #if !defined(__FreeBSD__)
 #include <sys/stat.h>
+#if !defined(__NetBSD__)
 #include <sys/statfs.h>
+#endif
 #else
 #include <sys/param.h>
 #include <sys/mount.h>
 #endif
 
+#if defined(__NetBSD__)
+#include <sys/statvfs.h>
+#ifndef statfs
+#define statfs statvfs
+#endif
+#endif
+
 #define DVD_PAL_4x3    0
 #define DVD_PAL_16x9   1
 #define DVD_NTSC_4x3   2