]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Only include sys/mount.h if found by configure
authorhno <>
Sun, 14 Jan 2001 21:18:18 +0000 (21:18 +0000)
committerhno <>
Sun, 14 Jan 2001 21:18:18 +0000 (21:18 +0000)
(and don't doubly include sys/param.h)

src/squid.h

index 44e06481bfe8a42d8562c8c9b57e6c0c0bf04aea..8ad9b410111654513100f8a6ee1746ce08d5eec2 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: squid.h,v 1.210 2001/01/12 00:37:21 wessels Exp $
+ * $Id: squid.h,v 1.211 2001/01/14 14:18:18 hno Exp $
  *
  * AUTHOR: Duane Wessels
  *
 #include <unix.h>
 #endif
 
+#if HAVE_SYS_MOUNT_H
+#include <sys/mount.h>
+#endif
+
 /*
  * We require poll.h before using poll().  If the symbols used
  * by poll() are defined elsewhere, we will need to make this
@@ -436,9 +440,6 @@ struct rusage {
 #define SQUID_NONBLOCK O_NDELAY
 #endif
 
-#include <sys/param.h>
-#include <sys/mount.h>
-
 /*
  * I'm sick of having to keep doing this ..
  */