]> err.no Git - varnish/commitdiff
NetBSD Portability fix:
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 5 Dec 2006 08:47:43 +0000 (08:47 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 5 Dec 2006 08:47:43 +0000 (08:47 +0000)
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

varnish-cache/bin/varnishd/storage_file.c
varnish-cache/configure.ac

index a48a716941b2ea4a4eac2f3c000bef1ff9f311b1..fc959f7b379a09be439c5c5099ece66be355f713 100644 (file)
 #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
index 95182bec0e19328af6da9d26d21d229cc3409976..83f3926a8230f4386415924352144393ac298b3b 100644 (file)
@@ -45,6 +45,7 @@ AC_HEADER_STDC
 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])