Commit 953d4ae0 authored by Knut Aksel Roeysland's avatar Knut Aksel Roeysland

Fixed double declaraction error on systems having both HAVE_SYS_STATVFS_H and HAVE_SYS_VFS_H.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1230 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 3072196f
......@@ -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
......
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