From 8fb75e2e225442c48a3f58f80bfdc8c1e0b87b64 Mon Sep 17 00:00:00 2001 From: phk Date: Tue, 5 Dec 2006 08:47:43 +0000 Subject: [PATCH] NetBSD Portability fix: Starting with 3.1, NetBSD uses statvfs and not statfs. Submitted by: Juan RP git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1226 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/storage_file.c | 5 +++++ varnish-cache/configure.ac | 1 + 2 files changed, 6 insertions(+) diff --git a/varnish-cache/bin/varnishd/storage_file.c b/varnish-cache/bin/varnishd/storage_file.c index a48a7169..fc959f7b 100644 --- a/varnish-cache/bin/varnishd/storage_file.c +++ b/varnish-cache/bin/varnishd/storage_file.c @@ -37,6 +37,11 @@ #include #include +#ifdef HAVE_SYS_STATVFS_H +#include +#define statfs statvfs +#endif + #ifdef HAVE_SYS_VFS_H #include #endif diff --git a/varnish-cache/configure.ac b/varnish-cache/configure.ac index 95182bec..83f3926a 100644 --- a/varnish-cache/configure.ac +++ b/varnish-cache/configure.ac @@ -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]) -- 2.39.5