This fixes compile errors with shadowed definitions:
error: 'int statfs(const char*, statfs*)'
hides constructor for 'struct statfs' [-Werror=shadow]
}
#endif /* !HAVE_GETTIMEOFDAY */
+#if !_SQUID_MINGW_
int
statfs(const char *path, struct statfs *sfs)
{
sfs->f_namelen = maxlen;
return 0;
}
+#endif
#if !_SQUID_MINGW_
int
char **gr_mem; /* group members */
};
+#if !_SQUID_MINGW_
struct statfs {
long f_type; /* type of filesystem (see below) */
long f_bsize; /* optimal transfer block size */
long f_namelen; /* maximum length of filenames */
long f_spare[6]; /* spare for later */
};
+#endif
#if !HAVE_GETTIMEOFDAY
struct timezone {
SQUIDCEXTERN int chroot(const char *dirname);
SQUIDCEXTERN int kill(pid_t, int);
+#if !_SQUID_MINGW_
SQUIDCEXTERN int statfs(const char *, struct statfs *);
+#endif
SQUIDCEXTERN struct passwd * getpwnam(char *unused);
SQUIDCEXTERN struct group * getgrnam(char *unused);