]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Add missing includes
authorFrancesco Chemolli <kinkie@squid-cache.org>
Wed, 15 Aug 2012 15:17:32 +0000 (17:17 +0200)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Wed, 15 Aug 2012 15:17:32 +0000 (17:17 +0200)
53 files changed:
compat/xstrerror.h
lib/Array.cc
src/DiskIO/AIO/AIODiskFile.cc
src/DiskIO/AIO/aio_win32.cc
src/DiskIO/Blocking/BlockingFile.cc
src/DiskIO/DiskDaemon/DiskdIOStrategy.cc
src/DiskIO/DiskThreads/DiskThreadsDiskFile.cc
src/DiskIO/IpcIo/IpcIoFile.cc
src/DiskIO/Mmapped/MmappedFile.cc
src/HttpHeaderTools.cc
src/acl/Method.h
src/cache_diff.cc
src/comm.cc
src/comm/ConnOpener.cc
src/comm/ModDevPoll.cc
src/comm/ModEpoll.cc
src/comm/ModKqueue.cc
src/comm/ModPoll.cc
src/comm/ModSelect.cc
src/comm/ModSelectWin32.cc
src/comm/TcpAcceptor.cc
src/comm/Write.cc
src/disk.cc
src/dns_internal.cc
src/esi/Expression.cc
src/eui/Eui48.cc
src/forward.cc
src/fs/coss/store_dir_coss.cc
src/fs/rock/RockRebuild.cc
src/fs/ufs/RebuildState.cc
src/fs/ufs/UFSSwapDir.cc
src/ftp.cc
src/icmp/IcmpPinger.cc
src/icmp/IcmpSquid.cc
src/icp_v2.cc
src/ip/Intercept.cc
src/ip/QosConfig.cc
src/ipc/Coordinator.cc
src/ipc/StartListening.cc
src/ipc_win32.cc
src/log/ModDaemon.cc
src/log/ModStdio.cc
src/log/ModTcp.cc
src/log/ModUdp.cc
src/main.cc
src/ssl/support.cc
src/store_dir.cc
src/store_rebuild.cc
src/test_cache_digest.cc
src/tools.cc
src/tunnel.cc
src/whois.cc
test-suite/test_tools.cc

index 69fa439e88f8f2ea62029274582c9fa850e7587d..095a1202f63170295826068ffecbcb656a932496 100644 (file)
@@ -1,6 +1,10 @@
 #ifndef _SQUID_COMPAT_XSTRERROR_H
 #define _SQUID_COMPAT_XSTRERROR_H
 
+#if HAVE_ERRNO_H
+#include <errno.h>
+#endif
+
 /** strerror() wrapper replacement.
  *
  * Provides the guarantee that a string is always returned.
index efab8f51ff6a493ec564b05a8d4056ffacadb802..afa73794f6387f00d2ac12845b920292e05e3d4d 100644 (file)
@@ -49,5 +49,3 @@
 #if HAVE_STRING_H
 #include <string.h>
 #endif
-#include "util.h"
-#include "Array.h"
index ccc7415dc608c85a508d719aeeac9e8ee263add9..fa2132f8ed5cc052e90cb5214d4a604ad1409df3 100644 (file)
 #include "DiskIO/WriteRequest.h"
 #include "protos.h"
 
+#if HAVE_ERRNO_H
+#include <errno.h>
+#endif
+
 CBDATA_CLASS_INIT(AIODiskFile);
 void *
 AIODiskFile::operator new(size_t unused)
index 180d4b4ab5c46236b4a3d54c68283f13b5cd9aa0..6f6ff0335871ca7d4937ed9d2b15ae1c8aa21432 100644 (file)
 #include "comm.h"
 #include "aio_win32.h"
 
+#if HAVE_ERRNO_H
+#include <errno.h>
+#endif
+
 #if _SQUID_WINDOWS_
 VOID CALLBACK IoCompletionRoutine(DWORD dwErrorCode,
                                   DWORD dwNumberOfBytesTransfered, LPOVERLAPPED lpOverlapped)
index 7047b34ec858bba127a15c0d1939aca9710b38d8..38e5b613af5fc04aab7d70937bbcd1e55f9ac2a2 100644 (file)
@@ -40,6 +40,9 @@
 #include "DiskIO/WriteRequest.h"
 #include "protos.h"
 
+#if HAVE_ERRNO_H
+#include <errno.h>
+#endif
 CBDATA_CLASS_INIT(BlockingFile);
 
 void *
index aaa02b3ac9abf1efe3701835f130586c1177d1d8..2f1b4952c72726a72eca35b459a0b76debb1f4c6 100644 (file)
@@ -48,6 +48,9 @@
 #include <sys/ipc.h>
 #include <sys/msg.h>
 #include <sys/shm.h>
+#if HAVE_ERRNO_H
+#include <errno.h>
+#endif
 
 diskd_stats_t diskd_stats;
 
index a405d6f8bbd614d566bbb1bc2910d9140a2b60f7..0edfb256375af36c72800a3a582a5037ff68a115 100644 (file)
 #include "Store.h"
 #include "protos.h"
 
+#if HAVE_ERRNO_H
+#include <errno.h>
+#endif
+
 /* === PUBLIC =========================================================== */
 
 CBDATA_CLASS_INIT(DiskThreadsDiskFile);
index 0b5069aa6ca98bb82e7f9da06e049a5929552ca7..71a7ce783360b189c00dbaabc196e9f5d9eb03d3 100644 (file)
 #include "DiskIO/ReadRequest.h"
 #include "DiskIO/WriteRequest.h"
 #include "globals.h"
+#include "ipc/mem/Pages.h"
 #include "ipc/Messages.h"
 #include "ipc/Port.h"
 #include "ipc/Queue.h"
 #include "ipc/StrandSearch.h"
 #include "ipc/UdsOp.h"
-#include "ipc/mem/Pages.h"
-#include "StatCounters.h"
-#include "SquidTime.h"
 #include "protos.h"
+#include "SquidTime.h"
+#include "StatCounters.h"
 
+#if HAVE_ERRNO_H
+#include <errno.h>
+#endif
 CBDATA_CLASS_INIT(IpcIoFile);
 
 /// shared memory segment path to use for IpcIoFile maps
index 30c2cb3ac6bfa7105bb3a2c31dde29ec7e06ea8c..8e0084b421d00b70173e674ba397656bff0ce926 100644 (file)
@@ -19,6 +19,9 @@
 #if HAVE_SYS_STAT_H
 #include <sys/stat.h>
 #endif
+#if HAVE_ERRNO_H
+#include <errno.h>
+#endif
 
 CBDATA_CLASS_INIT(MmappedFile);
 
index 74d6dc53ee680d4047d09c45bd7bef2287b1543c..35ead37d1de298247942acc3c5a32fb16f8b545e 100644 (file)
@@ -54,6 +54,9 @@
 
 #include <algorithm>
 #include <string>
+#if HAVE_ERRNO_H
+#include <errno.h>
+#endif
 
 static void httpHeaderPutStrvf(HttpHeader * hdr, http_hdr_type id, const char *fmt, va_list vargs);
 
index 20ffbf2e34691215ef13a1ee7401e1f11ac51180..32a8a0bf2472e3b3d6352866848e8cb785658f6b 100644 (file)
@@ -44,7 +44,7 @@ class ACLMethodStrategy : public ACLStrategy<HttpRequestMethod>
 {
 
 public:
-    virtual int match (ACLData<ACLStrategy::MatchType> * &, ACLFilledChecklist *);
+    virtual int match (ACLData<MatchType> * &, ACLFilledChecklist *);
     virtual bool requiresRequest() const {return true;}
 
     static ACLMethodStrategy *Instance();
index 5ac819c55ad70a49c96762451769d0205688cc2c..32c12c4c05edd7a76c8082f6357a8f2f73fb3c0e 100644 (file)
 
 #include "squid.h"
 
+#if HAVE_ERRNO_H
+#include <errno.h>
+#endif
+
 typedef struct {
     const char *name;
     hash_table *hash;
index de0bada35a4aa1431c2e59a037b432e3968a527d..34efd3c9e2e936cea8e8b7d8aede5915b3c7ab47 100644 (file)
@@ -79,6 +79,9 @@
 #if HAVE_MATH_H
 #include <math.h>
 #endif
+#if HAVE_ERRNO_H
+#include <errno.h>
+#endif
 
 /*
  * New C-like simple comm code. This stuff is a mess and doesn't really buy us anything.
index 25f33efc61537d865698cd3ea2599c72f64f3085..4a5d6eb5857d70f4d189c9b587ce32fe01b66b52 100644 (file)
 #include "SquidTime.h"
 #include "protos.h"
 
+#if HAVE_ERRNO_H
+#include <errno.h>
+#endif
+
 CBDATA_NAMESPACED_CLASS_INIT(Comm, ConnOpener);
 
 Comm::ConnOpener::ConnOpener(Comm::ConnectionPointer &c, AsyncCall::Pointer &handler, time_t ctimeout) :
index 5c114183b3e9c080c7e952866a1bafbe5fd214bc..ba90476feca51ee3bc0ddcb226c2e23e7686c224 100644 (file)
@@ -67,6 +67,9 @@
 /* Solaris /dev/poll support, see "man -s 7D poll" */
 #include <sys/devpoll.h>
 #endif
+#if HAVE_ERRNO_H
+#include <errno.h>
+#endif
 
 #define DEBUG_DEVPOLL 0
 
index 1a09a7013ff223b796ba83b1a0034ebdcf980c6e..08728f7fb0fb1dcff4fcb2380a5fce17236d0c1e 100644 (file)
@@ -70,6 +70,9 @@
 #if HAVE_SYS_EPOLL_H
 #include <sys/epoll.h>
 #endif
+#if HAVE_ERRNO_H
+#include <errno.h>
+#endif
 
 static int kdpfd;
 static int max_poll_time = 1000;
index aed809f94f533d9aa8f6c9e7cdf615c53dc3cb60..449c24f3c8f05d4a14d7bb2d854f2bfb8bd9d31d 100644 (file)
@@ -64,6 +64,9 @@
 #if HAVE_SYS_EVENT_H
 #include <sys/event.h>
 #endif
+#if HAVE_ERRNO_H
+#include <errno.h>
+#endif
 
 #define KE_LENGTH        128
 
index 2569d5b0294b587835ebeafcda9b80fc8d993e88..6a6cbf0af806a2e74206f5f1d1eb295765c21216 100644 (file)
@@ -49,6 +49,9 @@
 #if HAVE_POLL_H
 #include <poll.h>
 #endif
+#if HAVE_ERRNO_H
+#include <errno.h>
+#endif
 
 /* Needed for poll() on Linux at least */
 #if USE_POLL
index 540c560dbd591a409347c077c979a8d5b0fbe1c9..8a2c4a1781ca148a636be70fa5213055f2b2fa62 100644 (file)
@@ -49,6 +49,9 @@
 #if HAVE_SYS_STAT_H
 #include <sys/stat.h>
 #endif
+#if HAVE_ERRNO_H
+#include <errno.h>
+#endif
 
 static int MAX_POLL_TIME = 1000;       /* see also Comm::QuickPollRequired() */
 
index 9f73253fd88ff3b0783f7bf7719924337481a799..18f8d3bfbdab2f57f6047b22fef4df7e6da32ab0 100644 (file)
 #include "StatHist.h"
 #include "Store.h"
 
+#if HAVE_ERRNO_H
+#include <errno.h>
+#endif
+
 static int MAX_POLL_TIME = 1000;       /* see also Comm::QuickPollRequired() */
 
 #ifndef        howmany
index 07c81873cfc6696bd80bd2dce05296dd0d538191..1ba79a603639248b9249823040406cec323a55ba 100644 (file)
 #include "SquidTime.h"
 #include "StatCounters.h"
 
+#if HAVE_ERRNO_H
+#include <errno.h>
+#endif
+
 namespace Comm
 {
 CBDATA_CLASS_INIT(TcpAcceptor);
index a3f5f444d5f9a7f612cc35223ee64fbc8faf55cc..20c2f967b28ad70ff3a98acea602dd8ca1307f88 100644 (file)
@@ -1,17 +1,21 @@
 #include "squid.h"
-#if USE_DELAY_POOLS
-#include "ClientInfo.h"
-#endif
 #include "comm/Connection.h"
 #include "comm/IoCallback.h"
 #include "comm/Write.h"
 #include "fde.h"
 #include "globals.h"
-#include "StatCounters.h"
-#include "SquidTime.h"
 #include "MemBuf.h"
 #include "profiler/Profiler.h"
 #include "protos.h"
+#include "SquidTime.h"
+#include "StatCounters.h"
+
+#if USE_DELAY_POOLS
+#include "ClientInfo.h"
+#endif
+#if HAVE_ERRNO_H
+#include <errno.h>
+#endif
 
 void
 Comm::Write(const Comm::ConnectionPointer &conn, MemBuf *mb, AsyncCall::Pointer &callback)
index fe5440e6e16aba128c94e36d3aee04cfd38bf4d6..83644791f13039828fac6f87b952e69d46cd7cd5 100644 (file)
 #include "protos.h"
 #include "StatCounters.h"
 
+#if HAVE_ERRNO_H
+#include <errno.h>
+#endif
+
 static PF diskHandleRead;
 static PF diskHandleWrite;
 
index f1af98de1668f86e6a21eaa529e3a79bb9afef40..5d671890efcaf951531ab1e74d39b6499a56442c 100644 (file)
@@ -57,6 +57,9 @@
 #if HAVE_RESOLV_H
 #include <resolv.h>
 #endif
+#if HAVE_ERRNO_H
+#include <errno.h>
+#endif
 
 /* MS Visual Studio Projects are monolithic, so we need the following
    #ifndef to exclude the internal DNS code from compile process when
index 378a4772cfe2033aa8d28a304560b8a3fc04d750..5d3968a1be74363b5fa5cc69b51194a44cbe355f 100644 (file)
@@ -41,6 +41,9 @@
 #if HAVE_MATH_H
 #include <math.h>
 #endif
+#if HAVE_ERRNO_H
+#include <errno.h>
+#endif
 
 /* stack precedence rules:
  * before pushing an operator onto the stack, the
index 7dc4977ca7a6100da1d440d6d531c0c100b4a4fe..57694d8192c4976eab415008fda81e2e705a715d 100644 (file)
@@ -41,7 +41,9 @@
 #include "globals.h"
 #include "ip/Address.h"
 
-
+#if HAVE_ERRNO_H
+#include <errno.h>
+#endif
 #if _SQUID_CYGWIN_
 #include <squid_windows.h>
 #endif
index 905e9d9272ba9a73129bbb0619c405a31e613d7d..fd264285ceb9e5e542810c566db9bae693e6dd7a 100644 (file)
@@ -66,6 +66,9 @@
 #include "ssl/ErrorDetail.h"
 #include "ssl/ServerBump.h"
 #endif
+#if HAVE_ERRNO_H
+#include <errno.h>
+#endif
 
 static PSC fwdPeerSelectionCompleteWrapper;
 static CLCB fwdServerClosedWrapper;
index a59527100051ce3dcb81ccc1a4de17c1de3e3d26..5a83b4449f92ae67e7e20180491df35e246715c6 100644 (file)
@@ -36,7 +36,6 @@
 #include "squid.h"
 #include "CossSwapDir.h"
 #include "Store.h"
-
 #include "store_coss.h"
 #include "event.h"
 #include "fde.h"
 #include "swap_log_op.h"
 #include "SquidMath.h"
 
+#if HAVE_ERRNO_H
+#include <errno.h>
+#endif
+
 #define STORE_META_BUFSZ 4096
 
 int n_coss_dirs = 0;
index 7832a9f993a3d53c35c6a808327fcb28acc27223..94e84b157055f191ea38cd1774ee016745f1c452 100644 (file)
 #include "typedefs.h"
 #include "SquidTime.h"
 
+#if HAVE_ERRNO_H
+#include <errno.h>
+#endif
+
 CBDATA_NAMESPACED_CLASS_INIT(Rock, Rebuild);
 
 Rock::Rebuild::Rebuild(SwapDir *dir): AsyncJob("Rock::Rebuild"),
index 4bfbef37bee3ab860eb8980e480a0a897d007480..976b276ad8e3f38ccaba5c672c4e98bdc07c2fa7 100644 (file)
@@ -44,6 +44,9 @@
 #if HAVE_SYS_STAT_H
 #include <sys/stat.h>
 #endif
+#if HAVE_ERRNO_H
+#include <errno.h>
+#endif
 
 CBDATA_NAMESPACED_CLASS_INIT(Fs::Ufs,RebuildState);
 
index 6e3e46f823137525e6be59f5324addd66ca45e70..a1c2fff98d92740de9b8044466452cee62864168 100644 (file)
@@ -54,6 +54,9 @@
 #if HAVE_SYS_STAT_H
 #include <sys/stat.h>
 #endif
+#if HAVE_ERRNO_H
+#include <errno.h>
+#endif
 
 int Fs::Ufs::UFSSwapDir::NumberOfUFSDirs = 0;
 int *Fs::Ufs::UFSSwapDir::UFSDirToGlobalDirMapping = NULL;
index 5e3d09b4559aba2c3f1b2a2db094291934ee6abc..7698a9f60f94954826bfeded9de26e75193f37e7 100644 (file)
 #include "MemObject.h"
 #endif
 
+#if HAVE_ERRNO_H
+#include <errno.h>
+#endif
+
 /**
  \defgroup ServerProtocolFTPInternal Server-Side FTP Internals
  \ingroup ServerProtocolFTPAPI
index 79f55e5bed8cd5bdb5f42cedb19366cbd0c8e865..23754334eccb2821c19edfc6f88033e5b2080804 100644 (file)
 #include "Icmp6.h"
 #include "Debug.h"
 
+#if HAVE_ERRNO_H
+#include <errno.h>
+#endif
+
 IcmpPinger::IcmpPinger() : Icmp()
 {
     // these start invalid. Setup properly in Open()
index b6f37212fa44842f4c9ff42ca94ee313ebc28518..7a8b43dca4b4b7782079a50f303228a34e05ecf2 100644 (file)
 #include "protos.h"
 #include "SquidTime.h"
 
+#if HAVE_ERRNO_H
+#include <errno.h>
+#endif
+
 // Instance global to be available in main() and elsewhere.
 IcmpSquid icmpEngine;
 
index fc11cab16f8799e0d2a1fbd311b575fcc98ff191..ee6ef69490178278e12c5bacb426936b5eddc61f 100644 (file)
 #include "SwapDir.h"
 #include "wordlist.h"
 
+#if HAVE_ERRNO_H
+#include <errno.h>
+#endif
+
 static void icpIncomingConnectionOpened(const Comm::ConnectionPointer &conn, int errNo);
 
 /// \ingroup ServerProtocolICPInternal2
index 446b3eacc8c6e8f0f29cca13590d93ffbeb99cb7..48bc94f6068e8a3cda02b27cdcc3aebd3d1622be 100644 (file)
@@ -70,6 +70,9 @@
 #elif HAVE_NETINET_IP_NAT_H
 #include <netinet/ip_nat.h>
 #endif
+#if HAVE_ERRNO_H
+#include <errno.h>
+#endif
 
 #endif /* IPF_TRANSPARENT required headers */
 
index 49e501981c19e1658570e10caa10ceac59ca4169..97fbd9c06b4ba8274b9c710eaa5c921a9836b7fb 100644 (file)
 #include "Parsing.h"
 #include "protos.h"
 
+#if HAVE_ERRNO_H
+#include <errno.h>
+#endif
+
 /* Qos namespace */
 
 void
index d1a08991459f1e32aec37bbe9ab8325fa5cbef89..78953b00e981b89293a4defd7923c9a569de08b6 100644 (file)
@@ -23,6 +23,9 @@
 #include "snmp/Request.h"
 #include "snmp/Response.h"
 #endif
+#if HAVE_ERRNO_H
+#include <errno.h>
+#endif
 
 CBDATA_NAMESPACED_CLASS_INIT(Ipc, Coordinator);
 Ipc::Coordinator* Ipc::Coordinator::TheInstance = NULL;
index aec726397ba206fdfe04eeafc68659a0b9f7760f..b6dde631334fbd362fc8d81a17b4518b2d84657b 100644 (file)
 #include "ipc/StartListening.h"
 #include "protos.h"
 
+#if HAVE_ERRNO_H
+#include <errno.h>
+#endif
+
 Ipc::StartListeningCb::StartListeningCb(): conn(NULL), errNo(0)
 {
 }
index 194e3f263f0255b695c7a523f94075700af687df..31ac49208c4cd7a1372ecbd6ec9dbcaf4d69f049 100644 (file)
@@ -44,6 +44,9 @@
 #include <mswsock.h>
 #endif
 #include <process.h>
+#if HAVE_ERRNO_H
+#include <errno.h>
+#endif
 
 struct ipc_params {
     int type;
index 81199861b8be33d5384714653d379c125acc1e47..4714559a7c0a0648e3e8b0994c099b551089226a 100644 (file)
 #include "protos.h"
 #include "SquidTime.h"
 
+#if HAVE_ERRNO_H
+#include <errno.h>
+#endif
+
 /* How many buffers to keep before we say we've buffered too much */
 #define        LOGFILE_MAXBUFS         128
 
index 80a3c92ea33bb0255b45781081393455c48bae15..0de3d88ccf83bcd46316e5c75a67f2545d4618de 100644 (file)
 #include "log/ModStdio.h"
 #include "protos.h"
 
+#if HAVE_ERRNO_H
+#include <errno.h>
+#endif
+
 typedef struct {
     int fd;
     char *buf;
index cb7a1265d32d0076c577ce8c83d0d0b1ff6d602f..ab27445f46e22cfddda19db1b5a561c382ab5bde 100644 (file)
@@ -40,6 +40,9 @@
 #include "protos.h"
 #include "structs.h"
 
+#if HAVE_ERRNO_H
+#include <errno.h>
+#endif
 /*
  * This logfile TCP module is mostly inspired by a patch by Tim Starling
  * from Wikimedia.
index 7cee39a622cd5687ff8955a6ce9758e4bcb83ced..e470714ba26ab74456b1b7ca754a470b09b515c8 100644 (file)
 #include "protos.h"
 #include "structs.h"
 
+#if HAVE_ERRNO_H
+#include <errno.h>
+#endif
+
 /*
  * This logfile UDP module is mostly inspired by a patch by Tim Starling
  * from Wikimedia.
index 5e69193cb427cd1da05dc61bdc89e58852e8e7e2..35a2ed257b626f6c5978cb4539a87bc832d01e97 100644 (file)
 #if HAVE_SYS_WAIT_H
 #include <sys/wait.h>
 #endif
+#if HAVE_ERRNO_H
+#include <errno.h>
+#endif
 
 #if USE_WIN32_SERVICE
 #include "squid_windows.h"
index b1cc20dc39ba0614c15b9e6c0343d5ae3cb35120..3e4244021e404b30cedbdb73f16470b8bffbd0d3 100644 (file)
 #include "ssl/support.h"
 #include "ssl/gadgets.h"
 
+#if HAVE_ERRNO_H
+#include <errno.h>
+#endif
+
 const char *Ssl::BumpModeStr[] = {
     "none",
     "client-first",
index 1faf5dd67ebc4417caec04daa16f89f0c470a855..46919af47e23ce0d7f611467153c58e5b4c43402 100644 (file)
@@ -43,6 +43,7 @@
 #include "SquidMath.h"
 #include "SquidTime.h"
 #include "Store.h"
+#include "StoreHashIndex.h"
 #include "SwapDir.h"
 #include "swap_log_op.h"
 
 #if HAVE_SYS_WAIT_H
 #include <sys/wait.h>
 #endif
+#if HAVE_ERRNO_H
+#include <errno.h>
+#endif
 
-#include "StoreHashIndex.h"
 
 static STDIRSELECT storeDirSelectSwapDirRoundRobin;
 static STDIRSELECT storeDirSelectSwapDirLeastLoad;
index e6cf618a81578dd05b3f4c4b9effd3ccdf9500a0..b85269d87972f6c6439ba2f280daf91ea278738b 100644 (file)
@@ -44,6 +44,9 @@
 #include "StoreSearch.h"
 #include "SquidTime.h"
 
+#if HAVE_ERRNO_H
+#include <errno.h>
+#endif
 static struct _store_rebuild_data counts;
 
 static struct timeval rebuild_start;
index a9d95faeac689a6d96f9f102d33d836374d34511..017ef0db598fd6d37898ded96515c911f93214fe 100644 (file)
 
 #include "squid.h"
 
+#if HAVE_ERRNO_H
+#include <errno.h>
+#endif
+
 typedef struct {
     int query_count;
     int true_hit_count;
index b5f43e3165a9f2b86ae2b51bf6bd167c28edf190..3bea878a804e9eb50337f6ce3f257cd9230cc882 100644 (file)
@@ -62,6 +62,9 @@
 #if HAVE_GRP_H
 #include <grp.h>
 #endif
+#if HAVE_ERRNO_H
+#include <errno.h>
+#endif
 
 #define DEAD_MSG "\
 The Squid Cache (version %s) died.\n\
index 82207571e35d06125034dd078bf201e4bcffbb2e..547eec19ec6b26601d011c40fe71a12a7adcca18 100644 (file)
@@ -58,6 +58,9 @@
 #if HAVE_LIMITS_H
 #include <limits.h>
 #endif
+#if HAVE_ERRNO_H
+#include <errno.h>
+#endif
 
 class TunnelStateData
 {
index 080cda5dec5fdc42114f2b4d5c131581b5a3fa73..551413e992c0ce328c3c4a8208dda4d0017d920c 100644 (file)
 #include "StatCounters.h"
 #include "Store.h"
 
+#if HAVE_ERRNO_H
+#include <errno.h>
+#endif
+
 #define WHOIS_PORT 43
 
 class WhoisState
index 29762617f515ac5f62c87d93d6f9f2783f399fe5..9101e4e027a0c226e21d32d6c6d0134b58949879 100644 (file)
@@ -7,6 +7,7 @@
 
 #include "squid.h"
 #include "dlink.h"
+#include <iostream>
 
 void
 xassert(const char *msg, const char *file, int line)