]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
statfs bugfix from Alan Barrett
authorrobertc <>
Tue, 29 Jul 2003 18:20:59 +0000 (18:20 +0000)
committerrobertc <>
Tue, 29 Jul 2003 18:20:59 +0000 (18:20 +0000)
src/store_dir.cc

index cdb7257d25ddfa88a9922997739123dd7b669ceb..2676849a146180822da13d19ff2cd33654e54ca6 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: store_dir.cc,v 1.148 2003/07/22 15:23:02 robertc Exp $
+ * $Id: store_dir.cc,v 1.149 2003/07/29 12:20:59 robertc Exp $
  *
  * DEBUG: section 47    Store Directory Routines
  * AUTHOR: Duane Wessels
 #if HAVE_SYS_STATVFS_H
 #include <sys/statvfs.h>
 #endif
+#endif /* HAVE_STATVFS */
+/* statfs() needs <sys/param.h> and <sys/mount.h> on BSD systems */
+#if HAVE_SYS_PARAM_H
+#include <sys/param.h>
 #endif
-/* Windows uses sys/vfs.h */
+#if HAVE_SYS_MOUNT_H
+#include <sys/mount.h>
+#endif
+/* Windows and Linux use sys/vfs.h */
 #if HAVE_SYS_VFS_H
 #include <sys/vfs.h>
 #endif