From cb4cc402b6a55e5c91953941d873461170b733c3 Mon Sep 17 00:00:00 2001 From: des Date: Tue, 8 Aug 2006 12:46:57 +0000 Subject: [PATCH] #include for fstatfs if it is available. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@770 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/storage_file.c | 4 ++++ varnish-cache/configure.ac | 1 + 2 files changed, 5 insertions(+) diff --git a/varnish-cache/bin/varnishd/storage_file.c b/varnish-cache/bin/varnishd/storage_file.c index f16b8ae8..0c288521 100644 --- a/varnish-cache/bin/varnishd/storage_file.c +++ b/varnish-cache/bin/varnishd/storage_file.c @@ -10,6 +10,10 @@ #include #include +#ifdef HAVE_SYS_VFS_H +#include +#endif + #include #include #include diff --git a/varnish-cache/configure.ac b/varnish-cache/configure.ac index 356357de..d63734ae 100644 --- a/varnish-cache/configure.ac +++ b/varnish-cache/configure.ac @@ -41,6 +41,7 @@ AC_HEADER_STDC AC_HEADER_SYS_WAIT AC_HEADER_TIME AC_CHECK_HEADERS([sys/socket.h]) +AC_CHECK_HEADERS([sys/vfs.h]) AC_CHECK_HEADERS([netinet/in.h]) AC_CHECK_HEADERS([stddef.h]) AC_CHECK_HEADERS([stdlib.h]) -- 2.39.5