Commit 666bfff0 authored by Dag Erling Smørgrav's avatar Dag Erling Smørgrav

r34126@cat (orig r1230): knutroy | 2006-12-18 16:58:59 +0100

 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/branches/1.0@1251 d4fa192b-c00b-0410-8231-f00ffab90ce4
parents 6c3e3f31 953d4ae0
......@@ -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