]> err.no Git - varnish/commitdiff
Fixed double declaraction error on systems having both HAVE_SYS_STATVFS_H and HAVE_SY...
authorknutroy <knutroy@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 18 Dec 2006 15:58:59 +0000 (15:58 +0000)
committerknutroy <knutroy@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 18 Dec 2006 15:58:59 +0000 (15:58 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1230 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/storage_file.c

index 3209f7da098823c60923fc249576e8410e4c2bc0..229cfe54b8620291a3120c905d91bf08ebb208a5 100644 (file)
@@ -126,12 +126,7 @@ smf_calcsize(struct smf_sc *sc, const char *size, int newfile)
        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
+#if defined(HAVE_SYS_STATVFS_H) || defined(HAVE_SYS_VFS_H)
        struct statfs fsst;
        AZ(fstatfs(sc->fd, &fsst));
 #endif