]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Windows: wrap sys/shm.h sys/ipc.h includes
authorAmos Jeffries <squid3@treenet.co.nz>
Mon, 8 Oct 2012 07:06:28 +0000 (01:06 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 8 Oct 2012 07:06:28 +0000 (01:06 -0600)
configure.ac
src/DiskIO/DiskDaemon/DiskdFile.cc
src/DiskIO/DiskDaemon/DiskdIOStrategy.cc
src/DiskIO/DiskDaemon/diskd.cc

index 34495bd348f00d2188a624d3b70c6f2e8f2c47a6..b9872934692403291abab89477d1d140d6bba8d4 100644 (file)
@@ -2386,6 +2386,7 @@ AC_CHECK_HEADERS( \
   sys/endian.h \
   sys/file.h \
   sys/ioctl.h \
+  sys/ipc.cc \
   sys/param.h \
   sys/prctl.h \
   sys/md5.h \
@@ -2393,6 +2394,7 @@ AC_CHECK_HEADERS( \
   sys/msg.h \
   sys/resource.h \
   sys/select.h \
+  sys/shm.h \
   sys/socket.h \
   sys/stat.h \
   sys/statvfs.h \
index 2b62755a2ea959007899ff4731609989e28382a4..9625d0eb79d06776e650fef7d1ac4db779875f6a 100644 (file)
 #include "DiskIO/WriteRequest.h"
 #include "StatCounters.h"
 
+#if HAVE_SYS_IPC_H
 #include <sys/ipc.h>
+#endif
+#if HAVE_SYS_MSG_H
 #include <sys/msg.h>
+#endif
+#if HAVE_SYS_SHM_H
 #include <sys/shm.h>
+#endif
 
 CBDATA_CLASS_INIT(DiskdFile);
 
index aa07e33be6ce2a6d361d7f302cc3733ec4d13b2a..75f8f65d9edf25ead1503ec5e7300ceee6548c49 100644 (file)
 #include "SquidTime.h"
 #include "unlinkd.h"
 
+#if HAVE_SYS_IPC_H
 #include <sys/ipc.h>
+#endif
+#if HAVE_SYS_MSG_H
 #include <sys/msg.h>
+#endif
+#if HAVE_SYS_SHM_H
 #include <sys/shm.h>
+#endif
 #if HAVE_ERRNO_H
 #include <errno.h>
 #endif
index cca946c2276c3351fd619d3e1ac55ecceca0135b..7daf23cb895c47f02ed9220b5212409d3a44370d 100644 (file)
 #if HAVE_ERRNO_H
 #include <errno.h>
 #endif
+#if HAVE_SYS_IPC_H
 #include <sys/ipc.h>
+#endif
+#if HAVE_SYS_MSG_H
 #include <sys/msg.h>
+#endif
+#if HAVE_SYS_SHM_H
 #include <sys/shm.h>
+#endif
 #if HAVE_IOSTREAM
 #include <iostream>
 #endif