Commit 52411b6e authored by Dag Erling Smørgrav's avatar Dag Erling Smørgrav

Fix compilation on OpenBSD 4.1.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1465 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent e028bf23
......@@ -37,8 +37,8 @@
#include <sys/socket.h>
#include <sys/stat.h>
#ifdef HAVE_SYS_STATVFS_H
#include <sys/statvfs.h>
#ifdef HAVE_SYS_MOUNT_H
#include <sys/mount.h>
#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
......
......@@ -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])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment