Starting with 3.1, NetBSD uses statvfs and not statfs.
Submitted by: Juan RP <juan@xtrarom.org>
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1226
d4fa192b-c00b-0410-8231-
f00ffab90ce4
#include <sys/socket.h>
#include <sys/stat.h>
+#ifdef HAVE_SYS_STATVFS_H
+#include <sys/statvfs.h>
+#define statfs statvfs
+#endif
+
#ifdef HAVE_SYS_VFS_H
#include <sys/vfs.h>
#endif
AC_HEADER_SYS_WAIT
AC_HEADER_TIME
AC_CHECK_HEADERS([sys/socket.h])
+AC_CHECK_HEADERS([sys/statvfs.h])
AC_CHECK_HEADERS([sys/vfs.h])
AC_CHECK_HEADERS([netinet/in.h])
AC_CHECK_HEADERS([stddef.h])