From aac5d9cbaec535939038d137213ffd7ba4237568 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Thu, 29 Nov 2012 03:38:43 -0700 Subject: [PATCH] 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. --- src/comm/TcpAcceptor.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/comm/TcpAcceptor.cc b/src/comm/TcpAcceptor.cc index 6f388157a9..95bbca92a3 100644 --- a/src/comm/TcpAcceptor.cc +++ b/src/comm/TcpAcceptor.cc @@ -53,11 +53,12 @@ #if HAVE_ERRNO_H #include #endif +#ifdef HAVE_NETINET_TCP_H +// required for accept_filter to build. +#include +#endif -namespace Comm -{ -CBDATA_CLASS_INIT(TcpAcceptor); -}; +CBDATA_NAMESPACED_CLASS_INIT(Comm, TcpAcceptor); Comm::TcpAcceptor::TcpAcceptor(const Comm::ConnectionPointer &newConn, const char *note, const Subscription::Pointer &aSub) : AsyncJob("Comm::TcpAcceptor"), -- 2.47.2