git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1228
d4fa192b-c00b-0410-8231-
f00ffab90ce4
#ifdef HAVE_SYS_STATVFS_H
#include <sys/statvfs.h>
-#define statfs statvfs
#endif
#ifdef HAVE_SYS_VFS_H
char suff[2];
int i, expl;
off_t o;
- struct statfs fsst;
struct stat st;
+ AN(sc != NULL);
AZ(fstat(sc->fd, &st));
+
+#ifdef HAVE_SYS_STATVFS_H
+ struct statfs fsst;
+ AZ(fstatfs(sc->fd, &fsst));
+#endif
+
+#ifdef HAVE_SYS_VFS_H
+ struct statfs fsst;
AZ(fstatfs(sc->fd, &fsst));
+#endif
/* We use units of the larger of filesystem blocksize and pagesize */
bs = sc->pagesize;