From: Amos Jeffries Date: Sun, 14 Sep 2014 14:04:27 +0000 (-0700) Subject: Cleanup: wrap some C-includes with protective macros X-Git-Tag: SQUID_3_5_0_1~60 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7e851a397f262b8fd52184aa927e9c5c9f8359cc;p=thirdparty%2Fsquid.git Cleanup: wrap some C-includes with protective macros Squid-3 guidelines require that C-header includes should be wrapped and the absence of wrapping causes build errors on Windows at least for these ones. --- diff --git a/src/ipc/mem/Segment.cc b/src/ipc/mem/Segment.cc index c1c0c16c8e..127e7f70b5 100644 --- a/src/ipc/mem/Segment.cc +++ b/src/ipc/mem/Segment.cc @@ -17,10 +17,18 @@ #include "SBuf.h" #include "tools.h" +#if HAVE_FCNTL_H #include +#endif +#if HAVE_SYS_MMAN_H #include +#endif +#if HAVE_SYS_STAT_H #include +#endif +#if HAVE_UNISTD_H #include +#endif // test cases change this const char *Ipc::Mem::Segment::BasePath = DEFAULT_STATEDIR;