Credit Andrew with NetBSD build fixes
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / bdcreate.C
index 16c655a592c42595b2255816c72207742002a603..cc6b40b76d5e07320daeb0c8ecce9be64b7d8a86 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
+
 // BD Creation
 
 // selected by timezone