From: Amos Jeffries Date: Fri, 30 Nov 2012 13:40:25 +0000 (-0700) Subject: Fix accept_filter on Linux X-Git-Tag: SQUID_3_2_4~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5eb45ad045d56dd711a98d8f25f5ad0e907f4a5;p=thirdparty%2Fsquid.git Fix accept_filter on Linux accept_filter directive on Linux requires TCP_DEFER_ACCEPT which in turn requires netinet/tcp.h. This was removed when splitting comm into libcomm.la. --- diff --git a/src/comm/TcpAcceptor.cc b/src/comm/TcpAcceptor.cc index f8ceeedb69..4c86dc1ca4 100644 --- a/src/comm/TcpAcceptor.cc +++ b/src/comm/TcpAcceptor.cc @@ -46,10 +46,12 @@ #include "SquidTime.h" #include "StatCounters.h" -namespace Comm -{ -CBDATA_CLASS_INIT(TcpAcceptor); -}; +#ifdef HAVE_NETINET_TCP_H +// required for accept_filter to build. +#include +#endif + +CBDATA_NAMESPACED_CLASS_INIT(Comm, TcpAcceptor); Comm::TcpAcceptor::TcpAcceptor(const Comm::ConnectionPointer &newConn, const char *note, const Subscription::Pointer &aSub) : AsyncJob("Comm::TcpAcceptor"),