newer NetBSD uses statvfs (perhaps handle this with autoconf?)
authorChristos Zoulas <christos@zoulas.com>
Wed, 17 Sep 2008 20:19:07 +0000 (20:19 +0000)
committerChristos Zoulas <christos@zoulas.com>
Wed, 17 Sep 2008 20:19:07 +0000 (20:19 +0000)
conf/checkmount/checkmount_bsd44.c

index 8873ea6c7df272c0250ba18d0686cf6ed64c517e..1640a1ef832ca18826f9d6cc18d280e4b09a0333 100644 (file)
@@ -45,6 +45,9 @@
 # include <config.h>
 #endif /* HAVE_CONFIG_H */
 #include <am_defs.h>
+#if __NetBSD_Version__ > 200030000
+#define statfs statvfs
+#endif
 
 extern int is_same_host(char *name1, char *name2, struct in_addr addr2);
 int fixmount_check_mount(char *host, struct in_addr hostaddr, char *path);