]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fixed some include conditionals
authorFrancesco Chemolli <kinkie@squid-cache.org>
Tue, 24 Jan 2012 14:30:14 +0000 (15:30 +0100)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Tue, 24 Jan 2012 14:30:14 +0000 (15:30 +0100)
src/ipc/mem/Segment.cc

index e5f5b5f8ce42bd4e61cc7eb9b384a1f2e1564bae..f2f8a04666b2d7c087b79d32555383ed6f460e21 100644 (file)
 #include "ipc/mem/Segment.h"
 #include "protos.h"
 
+#if HAVE_FCNTL_H
 #include <fcntl.h>
+#endif
+#if HAVE_SYS_MMAN_H
 #include <sys/mman.h>
+#endif
+#if HAVE_SYS_STAT_H
 #include <sys/stat.h>
+#endif
+#if HAVE_UNISTD_H
 #include <unistd.h>
-
+#endif
 
 // test cases change this
 const char *Ipc::Mem::Segment::BasePath = DEFAULT_STATEDIR;