blob: 283494b7ce60308c50da199478a6d66a39415e8d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
$NetBSD: patch-au,v 1.5 2005/09/06 08:10:59 abs Exp $
--- ../setup2/mow/source/loader/loader.c.orig 2004-05-07 17:13:38.000000000 +0200
+++ ../setup2/mow/source/loader/loader.c
@@ -83,10 +83,20 @@
#ifdef LINUX
# include <sys/vfs.h>
# define statvfs statfs
-#elif defined(NETBSD) || defined(FREEBSD) || defined(MACOSX)
+#elif defined(FREEBSD) || defined(MACOSX)
# include <sys/param.h>
# include <sys/mount.h>
# define statvfs statfs
+#elif defined(NETBSD)
+#include <sys/param.h>
+# if __NetBSD_Version__ >= 299000900
+ /* NetBSD 2.99.9 switched to statvfs() */
+# include <sys/statvfs.h>
+# else
+ /* before NetBSD 2.99.9 */
+# include <sys/mount.h>
+# define statvfs statfs
+# endif
#else
# include <sys/statvfs.h>
#endif
|