From: Francesco Chemolli Date: Wed, 15 Aug 2012 15:17:32 +0000 (+0200) Subject: Add missing includes X-Git-Tag: sourceformat-review-1~107^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=21d845b13249334375961ca49b45ed6f0d4e40c8;p=thirdparty%2Fsquid.git Add missing includes --- diff --git a/compat/xstrerror.h b/compat/xstrerror.h index 69fa439e88..095a1202f6 100644 --- a/compat/xstrerror.h +++ b/compat/xstrerror.h @@ -1,6 +1,10 @@ #ifndef _SQUID_COMPAT_XSTRERROR_H #define _SQUID_COMPAT_XSTRERROR_H +#if HAVE_ERRNO_H +#include +#endif + /** strerror() wrapper replacement. * * Provides the guarantee that a string is always returned. diff --git a/lib/Array.cc b/lib/Array.cc index efab8f51ff..afa73794f6 100644 --- a/lib/Array.cc +++ b/lib/Array.cc @@ -49,5 +49,3 @@ #if HAVE_STRING_H #include #endif -#include "util.h" -#include "Array.h" diff --git a/src/DiskIO/AIO/AIODiskFile.cc b/src/DiskIO/AIO/AIODiskFile.cc index ccc7415dc6..fa2132f8ed 100644 --- a/src/DiskIO/AIO/AIODiskFile.cc +++ b/src/DiskIO/AIO/AIODiskFile.cc @@ -52,6 +52,10 @@ #include "DiskIO/WriteRequest.h" #include "protos.h" +#if HAVE_ERRNO_H +#include +#endif + CBDATA_CLASS_INIT(AIODiskFile); void * AIODiskFile::operator new(size_t unused) diff --git a/src/DiskIO/AIO/aio_win32.cc b/src/DiskIO/AIO/aio_win32.cc index 180d4b4ab5..6f6ff03358 100644 --- a/src/DiskIO/AIO/aio_win32.cc +++ b/src/DiskIO/AIO/aio_win32.cc @@ -37,6 +37,10 @@ #include "comm.h" #include "aio_win32.h" +#if HAVE_ERRNO_H +#include +#endif + #if _SQUID_WINDOWS_ VOID CALLBACK IoCompletionRoutine(DWORD dwErrorCode, DWORD dwNumberOfBytesTransfered, LPOVERLAPPED lpOverlapped) diff --git a/src/DiskIO/Blocking/BlockingFile.cc b/src/DiskIO/Blocking/BlockingFile.cc index 7047b34ec8..38e5b613af 100644 --- a/src/DiskIO/Blocking/BlockingFile.cc +++ b/src/DiskIO/Blocking/BlockingFile.cc @@ -40,6 +40,9 @@ #include "DiskIO/WriteRequest.h" #include "protos.h" +#if HAVE_ERRNO_H +#include +#endif CBDATA_CLASS_INIT(BlockingFile); void * diff --git a/src/DiskIO/DiskDaemon/DiskdIOStrategy.cc b/src/DiskIO/DiskDaemon/DiskdIOStrategy.cc index aaa02b3ac9..2f1b4952c7 100644 --- a/src/DiskIO/DiskDaemon/DiskdIOStrategy.cc +++ b/src/DiskIO/DiskDaemon/DiskdIOStrategy.cc @@ -48,6 +48,9 @@ #include #include #include +#if HAVE_ERRNO_H +#include +#endif diskd_stats_t diskd_stats; diff --git a/src/DiskIO/DiskThreads/DiskThreadsDiskFile.cc b/src/DiskIO/DiskThreads/DiskThreadsDiskFile.cc index a405d6f8bb..0edfb25637 100644 --- a/src/DiskIO/DiskThreads/DiskThreadsDiskFile.cc +++ b/src/DiskIO/DiskThreads/DiskThreadsDiskFile.cc @@ -45,6 +45,10 @@ #include "Store.h" #include "protos.h" +#if HAVE_ERRNO_H +#include +#endif + /* === PUBLIC =========================================================== */ CBDATA_CLASS_INIT(DiskThreadsDiskFile); diff --git a/src/DiskIO/IpcIo/IpcIoFile.cc b/src/DiskIO/IpcIo/IpcIoFile.cc index 0b5069aa6c..71a7ce7833 100644 --- a/src/DiskIO/IpcIo/IpcIoFile.cc +++ b/src/DiskIO/IpcIo/IpcIoFile.cc @@ -12,16 +12,19 @@ #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 +#endif CBDATA_CLASS_INIT(IpcIoFile); /// shared memory segment path to use for IpcIoFile maps diff --git a/src/DiskIO/Mmapped/MmappedFile.cc b/src/DiskIO/Mmapped/MmappedFile.cc index 30c2cb3ac6..8e0084b421 100644 --- a/src/DiskIO/Mmapped/MmappedFile.cc +++ b/src/DiskIO/Mmapped/MmappedFile.cc @@ -19,6 +19,9 @@ #if HAVE_SYS_STAT_H #include #endif +#if HAVE_ERRNO_H +#include +#endif CBDATA_CLASS_INIT(MmappedFile); diff --git a/src/HttpHeaderTools.cc b/src/HttpHeaderTools.cc index 74d6dc53ee..35ead37d1d 100644 --- a/src/HttpHeaderTools.cc +++ b/src/HttpHeaderTools.cc @@ -54,6 +54,9 @@ #include #include +#if HAVE_ERRNO_H +#include +#endif static void httpHeaderPutStrvf(HttpHeader * hdr, http_hdr_type id, const char *fmt, va_list vargs); diff --git a/src/acl/Method.h b/src/acl/Method.h index 20ffbf2e34..32a8a0bf24 100644 --- a/src/acl/Method.h +++ b/src/acl/Method.h @@ -44,7 +44,7 @@ class ACLMethodStrategy : public ACLStrategy { public: - virtual int match (ACLData * &, ACLFilledChecklist *); + virtual int match (ACLData * &, ACLFilledChecklist *); virtual bool requiresRequest() const {return true;} static ACLMethodStrategy *Instance(); diff --git a/src/cache_diff.cc b/src/cache_diff.cc index 5ac819c55a..32c12c4c05 100644 --- a/src/cache_diff.cc +++ b/src/cache_diff.cc @@ -40,6 +40,10 @@ #include "squid.h" +#if HAVE_ERRNO_H +#include +#endif + typedef struct { const char *name; hash_table *hash; diff --git a/src/comm.cc b/src/comm.cc index de0bada35a..34efd3c9e2 100644 --- a/src/comm.cc +++ b/src/comm.cc @@ -79,6 +79,9 @@ #if HAVE_MATH_H #include #endif +#if HAVE_ERRNO_H +#include +#endif /* * New C-like simple comm code. This stuff is a mess and doesn't really buy us anything. diff --git a/src/comm/ConnOpener.cc b/src/comm/ConnOpener.cc index 25f33efc61..4a5d6eb585 100644 --- a/src/comm/ConnOpener.cc +++ b/src/comm/ConnOpener.cc @@ -14,6 +14,10 @@ #include "SquidTime.h" #include "protos.h" +#if HAVE_ERRNO_H +#include +#endif + CBDATA_NAMESPACED_CLASS_INIT(Comm, ConnOpener); Comm::ConnOpener::ConnOpener(Comm::ConnectionPointer &c, AsyncCall::Pointer &handler, time_t ctimeout) : diff --git a/src/comm/ModDevPoll.cc b/src/comm/ModDevPoll.cc index 5c114183b3..ba90476fec 100644 --- a/src/comm/ModDevPoll.cc +++ b/src/comm/ModDevPoll.cc @@ -67,6 +67,9 @@ /* Solaris /dev/poll support, see "man -s 7D poll" */ #include #endif +#if HAVE_ERRNO_H +#include +#endif #define DEBUG_DEVPOLL 0 diff --git a/src/comm/ModEpoll.cc b/src/comm/ModEpoll.cc index 1a09a7013f..08728f7fb0 100644 --- a/src/comm/ModEpoll.cc +++ b/src/comm/ModEpoll.cc @@ -70,6 +70,9 @@ #if HAVE_SYS_EPOLL_H #include #endif +#if HAVE_ERRNO_H +#include +#endif static int kdpfd; static int max_poll_time = 1000; diff --git a/src/comm/ModKqueue.cc b/src/comm/ModKqueue.cc index aed809f94f..449c24f3c8 100644 --- a/src/comm/ModKqueue.cc +++ b/src/comm/ModKqueue.cc @@ -64,6 +64,9 @@ #if HAVE_SYS_EVENT_H #include #endif +#if HAVE_ERRNO_H +#include +#endif #define KE_LENGTH 128 diff --git a/src/comm/ModPoll.cc b/src/comm/ModPoll.cc index 2569d5b029..6a6cbf0af8 100644 --- a/src/comm/ModPoll.cc +++ b/src/comm/ModPoll.cc @@ -49,6 +49,9 @@ #if HAVE_POLL_H #include #endif +#if HAVE_ERRNO_H +#include +#endif /* Needed for poll() on Linux at least */ #if USE_POLL diff --git a/src/comm/ModSelect.cc b/src/comm/ModSelect.cc index 540c560dbd..8a2c4a1781 100644 --- a/src/comm/ModSelect.cc +++ b/src/comm/ModSelect.cc @@ -49,6 +49,9 @@ #if HAVE_SYS_STAT_H #include #endif +#if HAVE_ERRNO_H +#include +#endif static int MAX_POLL_TIME = 1000; /* see also Comm::QuickPollRequired() */ diff --git a/src/comm/ModSelectWin32.cc b/src/comm/ModSelectWin32.cc index 9f73253fd8..18f8d3bfbd 100644 --- a/src/comm/ModSelectWin32.cc +++ b/src/comm/ModSelectWin32.cc @@ -44,6 +44,10 @@ #include "StatHist.h" #include "Store.h" +#if HAVE_ERRNO_H +#include +#endif + static int MAX_POLL_TIME = 1000; /* see also Comm::QuickPollRequired() */ #ifndef howmany diff --git a/src/comm/TcpAcceptor.cc b/src/comm/TcpAcceptor.cc index 07c81873cf..1ba79a6036 100644 --- a/src/comm/TcpAcceptor.cc +++ b/src/comm/TcpAcceptor.cc @@ -47,6 +47,10 @@ #include "SquidTime.h" #include "StatCounters.h" +#if HAVE_ERRNO_H +#include +#endif + namespace Comm { CBDATA_CLASS_INIT(TcpAcceptor); diff --git a/src/comm/Write.cc b/src/comm/Write.cc index a3f5f444d5..20c2f967b2 100644 --- a/src/comm/Write.cc +++ b/src/comm/Write.cc @@ -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 +#endif void Comm::Write(const Comm::ConnectionPointer &conn, MemBuf *mb, AsyncCall::Pointer &callback) diff --git a/src/disk.cc b/src/disk.cc index fe5440e6e1..83644791f1 100644 --- a/src/disk.cc +++ b/src/disk.cc @@ -40,6 +40,10 @@ #include "protos.h" #include "StatCounters.h" +#if HAVE_ERRNO_H +#include +#endif + static PF diskHandleRead; static PF diskHandleWrite; diff --git a/src/dns_internal.cc b/src/dns_internal.cc index f1af98de16..5d671890ef 100644 --- a/src/dns_internal.cc +++ b/src/dns_internal.cc @@ -57,6 +57,9 @@ #if HAVE_RESOLV_H #include #endif +#if HAVE_ERRNO_H +#include +#endif /* MS Visual Studio Projects are monolithic, so we need the following #ifndef to exclude the internal DNS code from compile process when diff --git a/src/esi/Expression.cc b/src/esi/Expression.cc index 378a4772cf..5d3968a1be 100644 --- a/src/esi/Expression.cc +++ b/src/esi/Expression.cc @@ -41,6 +41,9 @@ #if HAVE_MATH_H #include #endif +#if HAVE_ERRNO_H +#include +#endif /* stack precedence rules: * before pushing an operator onto the stack, the diff --git a/src/eui/Eui48.cc b/src/eui/Eui48.cc index 7dc4977ca7..57694d8192 100644 --- a/src/eui/Eui48.cc +++ b/src/eui/Eui48.cc @@ -41,7 +41,9 @@ #include "globals.h" #include "ip/Address.h" - +#if HAVE_ERRNO_H +#include +#endif #if _SQUID_CYGWIN_ #include #endif diff --git a/src/forward.cc b/src/forward.cc index 905e9d9272..fd264285ce 100644 --- a/src/forward.cc +++ b/src/forward.cc @@ -66,6 +66,9 @@ #include "ssl/ErrorDetail.h" #include "ssl/ServerBump.h" #endif +#if HAVE_ERRNO_H +#include +#endif static PSC fwdPeerSelectionCompleteWrapper; static CLCB fwdServerClosedWrapper; diff --git a/src/fs/coss/store_dir_coss.cc b/src/fs/coss/store_dir_coss.cc index a595271000..5a83b4449f 100644 --- a/src/fs/coss/store_dir_coss.cc +++ b/src/fs/coss/store_dir_coss.cc @@ -36,7 +36,6 @@ #include "squid.h" #include "CossSwapDir.h" #include "Store.h" - #include "store_coss.h" #include "event.h" #include "fde.h" @@ -51,6 +50,10 @@ #include "swap_log_op.h" #include "SquidMath.h" +#if HAVE_ERRNO_H +#include +#endif + #define STORE_META_BUFSZ 4096 int n_coss_dirs = 0; diff --git a/src/fs/rock/RockRebuild.cc b/src/fs/rock/RockRebuild.cc index 7832a9f993..94e84b1570 100644 --- a/src/fs/rock/RockRebuild.cc +++ b/src/fs/rock/RockRebuild.cc @@ -13,6 +13,10 @@ #include "typedefs.h" #include "SquidTime.h" +#if HAVE_ERRNO_H +#include +#endif + CBDATA_NAMESPACED_CLASS_INIT(Rock, Rebuild); Rock::Rebuild::Rebuild(SwapDir *dir): AsyncJob("Rock::Rebuild"), diff --git a/src/fs/ufs/RebuildState.cc b/src/fs/ufs/RebuildState.cc index 4bfbef37be..976b276ad8 100644 --- a/src/fs/ufs/RebuildState.cc +++ b/src/fs/ufs/RebuildState.cc @@ -44,6 +44,9 @@ #if HAVE_SYS_STAT_H #include #endif +#if HAVE_ERRNO_H +#include +#endif CBDATA_NAMESPACED_CLASS_INIT(Fs::Ufs,RebuildState); diff --git a/src/fs/ufs/UFSSwapDir.cc b/src/fs/ufs/UFSSwapDir.cc index 6e3e46f823..a1c2fff98d 100644 --- a/src/fs/ufs/UFSSwapDir.cc +++ b/src/fs/ufs/UFSSwapDir.cc @@ -54,6 +54,9 @@ #if HAVE_SYS_STAT_H #include #endif +#if HAVE_ERRNO_H +#include +#endif int Fs::Ufs::UFSSwapDir::NumberOfUFSDirs = 0; int *Fs::Ufs::UFSSwapDir::UFSDirToGlobalDirMapping = NULL; diff --git a/src/ftp.cc b/src/ftp.cc index 5e3d09b455..7698a9f60f 100644 --- a/src/ftp.cc +++ b/src/ftp.cc @@ -65,6 +65,10 @@ #include "MemObject.h" #endif +#if HAVE_ERRNO_H +#include +#endif + /** \defgroup ServerProtocolFTPInternal Server-Side FTP Internals \ingroup ServerProtocolFTPAPI diff --git a/src/icmp/IcmpPinger.cc b/src/icmp/IcmpPinger.cc index 79f55e5bed..23754334ec 100644 --- a/src/icmp/IcmpPinger.cc +++ b/src/icmp/IcmpPinger.cc @@ -44,6 +44,10 @@ #include "Icmp6.h" #include "Debug.h" +#if HAVE_ERRNO_H +#include +#endif + IcmpPinger::IcmpPinger() : Icmp() { // these start invalid. Setup properly in Open() diff --git a/src/icmp/IcmpSquid.cc b/src/icmp/IcmpSquid.cc index b6f37212fa..7a8b43dca4 100644 --- a/src/icmp/IcmpSquid.cc +++ b/src/icmp/IcmpSquid.cc @@ -41,6 +41,10 @@ #include "protos.h" #include "SquidTime.h" +#if HAVE_ERRNO_H +#include +#endif + // Instance global to be available in main() and elsewhere. IcmpSquid icmpEngine; diff --git a/src/icp_v2.cc b/src/icp_v2.cc index fc11cab16f..ee6ef69490 100644 --- a/src/icp_v2.cc +++ b/src/icp_v2.cc @@ -58,6 +58,10 @@ #include "SwapDir.h" #include "wordlist.h" +#if HAVE_ERRNO_H +#include +#endif + static void icpIncomingConnectionOpened(const Comm::ConnectionPointer &conn, int errNo); /// \ingroup ServerProtocolICPInternal2 diff --git a/src/ip/Intercept.cc b/src/ip/Intercept.cc index 446b3eacc8..48bc94f606 100644 --- a/src/ip/Intercept.cc +++ b/src/ip/Intercept.cc @@ -70,6 +70,9 @@ #elif HAVE_NETINET_IP_NAT_H #include #endif +#if HAVE_ERRNO_H +#include +#endif #endif /* IPF_TRANSPARENT required headers */ diff --git a/src/ip/QosConfig.cc b/src/ip/QosConfig.cc index 49e501981c..97fbd9c06b 100644 --- a/src/ip/QosConfig.cc +++ b/src/ip/QosConfig.cc @@ -11,6 +11,10 @@ #include "Parsing.h" #include "protos.h" +#if HAVE_ERRNO_H +#include +#endif + /* Qos namespace */ void diff --git a/src/ipc/Coordinator.cc b/src/ipc/Coordinator.cc index d1a0899145..78953b00e9 100644 --- a/src/ipc/Coordinator.cc +++ b/src/ipc/Coordinator.cc @@ -23,6 +23,9 @@ #include "snmp/Request.h" #include "snmp/Response.h" #endif +#if HAVE_ERRNO_H +#include +#endif CBDATA_NAMESPACED_CLASS_INIT(Ipc, Coordinator); Ipc::Coordinator* Ipc::Coordinator::TheInstance = NULL; diff --git a/src/ipc/StartListening.cc b/src/ipc/StartListening.cc index aec726397b..b6dde63133 100644 --- a/src/ipc/StartListening.cc +++ b/src/ipc/StartListening.cc @@ -13,6 +13,10 @@ #include "ipc/StartListening.h" #include "protos.h" +#if HAVE_ERRNO_H +#include +#endif + Ipc::StartListeningCb::StartListeningCb(): conn(NULL), errNo(0) { } diff --git a/src/ipc_win32.cc b/src/ipc_win32.cc index 194e3f263f..31ac49208c 100644 --- a/src/ipc_win32.cc +++ b/src/ipc_win32.cc @@ -44,6 +44,9 @@ #include #endif #include +#if HAVE_ERRNO_H +#include +#endif struct ipc_params { int type; diff --git a/src/log/ModDaemon.cc b/src/log/ModDaemon.cc index 81199861b8..4714559a7c 100644 --- a/src/log/ModDaemon.cc +++ b/src/log/ModDaemon.cc @@ -41,6 +41,10 @@ #include "protos.h" #include "SquidTime.h" +#if HAVE_ERRNO_H +#include +#endif + /* How many buffers to keep before we say we've buffered too much */ #define LOGFILE_MAXBUFS 128 diff --git a/src/log/ModStdio.cc b/src/log/ModStdio.cc index 80a3c92ea3..0de3d88ccf 100644 --- a/src/log/ModStdio.cc +++ b/src/log/ModStdio.cc @@ -37,6 +37,10 @@ #include "log/ModStdio.h" #include "protos.h" +#if HAVE_ERRNO_H +#include +#endif + typedef struct { int fd; char *buf; diff --git a/src/log/ModTcp.cc b/src/log/ModTcp.cc index cb7a1265d3..ab27445f46 100644 --- a/src/log/ModTcp.cc +++ b/src/log/ModTcp.cc @@ -40,6 +40,9 @@ #include "protos.h" #include "structs.h" +#if HAVE_ERRNO_H +#include +#endif /* * This logfile TCP module is mostly inspired by a patch by Tim Starling * from Wikimedia. diff --git a/src/log/ModUdp.cc b/src/log/ModUdp.cc index 7cee39a622..e470714ba2 100644 --- a/src/log/ModUdp.cc +++ b/src/log/ModUdp.cc @@ -39,6 +39,10 @@ #include "protos.h" #include "structs.h" +#if HAVE_ERRNO_H +#include +#endif + /* * This logfile UDP module is mostly inspired by a patch by Tim Starling * from Wikimedia. diff --git a/src/main.cc b/src/main.cc index 5e69193cb4..35a2ed257b 100644 --- a/src/main.cc +++ b/src/main.cc @@ -122,6 +122,9 @@ #if HAVE_SYS_WAIT_H #include #endif +#if HAVE_ERRNO_H +#include +#endif #if USE_WIN32_SERVICE #include "squid_windows.h" diff --git a/src/ssl/support.cc b/src/ssl/support.cc index b1cc20dc39..3e4244021e 100644 --- a/src/ssl/support.cc +++ b/src/ssl/support.cc @@ -48,6 +48,10 @@ #include "ssl/support.h" #include "ssl/gadgets.h" +#if HAVE_ERRNO_H +#include +#endif + const char *Ssl::BumpModeStr[] = { "none", "client-first", diff --git a/src/store_dir.cc b/src/store_dir.cc index 1faf5dd67e..46919af47e 100644 --- a/src/store_dir.cc +++ b/src/store_dir.cc @@ -43,6 +43,7 @@ #include "SquidMath.h" #include "SquidTime.h" #include "Store.h" +#include "StoreHashIndex.h" #include "SwapDir.h" #include "swap_log_op.h" @@ -65,8 +66,10 @@ #if HAVE_SYS_WAIT_H #include #endif +#if HAVE_ERRNO_H +#include +#endif -#include "StoreHashIndex.h" static STDIRSELECT storeDirSelectSwapDirRoundRobin; static STDIRSELECT storeDirSelectSwapDirLeastLoad; diff --git a/src/store_rebuild.cc b/src/store_rebuild.cc index e6cf618a81..b85269d879 100644 --- a/src/store_rebuild.cc +++ b/src/store_rebuild.cc @@ -44,6 +44,9 @@ #include "StoreSearch.h" #include "SquidTime.h" +#if HAVE_ERRNO_H +#include +#endif static struct _store_rebuild_data counts; static struct timeval rebuild_start; diff --git a/src/test_cache_digest.cc b/src/test_cache_digest.cc index a9d95faeac..017ef0db59 100644 --- a/src/test_cache_digest.cc +++ b/src/test_cache_digest.cc @@ -38,6 +38,10 @@ #include "squid.h" +#if HAVE_ERRNO_H +#include +#endif + typedef struct { int query_count; int true_hit_count; diff --git a/src/tools.cc b/src/tools.cc index b5f43e3165..3bea878a80 100644 --- a/src/tools.cc +++ b/src/tools.cc @@ -62,6 +62,9 @@ #if HAVE_GRP_H #include #endif +#if HAVE_ERRNO_H +#include +#endif #define DEAD_MSG "\ The Squid Cache (version %s) died.\n\ diff --git a/src/tunnel.cc b/src/tunnel.cc index 82207571e3..547eec19ec 100644 --- a/src/tunnel.cc +++ b/src/tunnel.cc @@ -58,6 +58,9 @@ #if HAVE_LIMITS_H #include #endif +#if HAVE_ERRNO_H +#include +#endif class TunnelStateData { diff --git a/src/whois.cc b/src/whois.cc index 080cda5dec..551413e992 100644 --- a/src/whois.cc +++ b/src/whois.cc @@ -45,6 +45,10 @@ #include "StatCounters.h" #include "Store.h" +#if HAVE_ERRNO_H +#include +#endif + #define WHOIS_PORT 43 class WhoisState diff --git a/test-suite/test_tools.cc b/test-suite/test_tools.cc index 29762617f5..9101e4e027 100644 --- a/test-suite/test_tools.cc +++ b/test-suite/test_tools.cc @@ -7,6 +7,7 @@ #include "squid.h" #include "dlink.h" +#include void xassert(const char *msg, const char *file, int line)