Commit f77ef183 authored by Dag Erling Smørgrav's avatar Dag Erling Smørgrav

r34122@cat (orig r1226): phk | 2006-12-05 09:47:43 +0100

 NetBSD Portability fix:
 
 Starting with 3.1, NetBSD uses statvfs and not statfs.
 
 Submitted by:	Juan RP <juan@xtrarom.org>
 


git-svn-id: http://www.varnish-cache.org/svn/branches/1.0@1247 d4fa192b-c00b-0410-8231-f00ffab90ce4
parents 26f6220d 5d1c0562
......@@ -37,6 +37,11 @@
#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
......
......@@ -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])
......
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