From: des Date: Tue, 22 May 2007 16:02:15 +0000 (+0000) Subject: Fix compilation on OpenBSD 4.1. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f3bc37aec952419f02c39958efe6f84e38a122c;p=varnish Fix compilation on OpenBSD 4.1. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1465 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/storage_file.c b/varnish-cache/bin/varnishd/storage_file.c index 57d49a4b..f06d700a 100644 --- a/varnish-cache/bin/varnishd/storage_file.c +++ b/varnish-cache/bin/varnishd/storage_file.c @@ -37,8 +37,8 @@ #include #include -#ifdef HAVE_SYS_STATVFS_H -#include +#ifdef HAVE_SYS_MOUNT_H +#include #endif #ifdef HAVE_SYS_VFS_H @@ -126,7 +126,7 @@ smf_calcsize(struct smf_sc *sc, const char *size, int newfile) AN(sc); AZ(fstat(sc->fd, &st)); -#if defined(HAVE_SYS_STATVFS_H) || defined(HAVE_SYS_VFS_H) +#if defined(HAVE_SYS_MOUNT_H) || defined(HAVE_SYS_VFS_H) struct statfs fsst; AZ(fstatfs(sc->fd, &fsst)); #endif diff --git a/varnish-cache/configure.ac b/varnish-cache/configure.ac index d6620be7..d3896054 100644 --- a/varnish-cache/configure.ac +++ b/varnish-cache/configure.ac @@ -55,7 +55,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/mount.h]) AC_CHECK_HEADERS([sys/vfs.h]) AC_CHECK_HEADERS([netinet/in.h]) AC_CHECK_HEADERS([stddef.h])