From: James Bekkema Date: Thu, 26 Jun 2014 11:40:39 +0000 (+1000) Subject: Fix socket-flag/TCP_NODELAY on Mac OS X X-Git-Tag: v2.3.5~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=066202de18a13d67664534d10698eda1fdeab381;p=thirdparty%2Fopenvpn.git Fix socket-flag/TCP_NODELAY on Mac OS X Hi All, OpenVPN 2.3.4 will currently throw a warning of "NOTE: setsockopt TCP_NODELAY=1 failed (No kernel support) when attempting to use the TCP_NODELAY socket option on Mac OS X/Darwin. Kernel support is there, however the required header file where TCP_NODELAY is defined is not being included. This patch simply alters syshead.h to include on Darwin platforms. Acked-by: Arne Schwabe Message-Id: URL: http://article.gmane.org/gmane.network.openvpn.devel/8809 Signed-off-by: Gert Doering (cherry picked from commit 37170767a221a4847416fc339083704ae1b4c001) --- diff --git a/src/openvpn/syshead.h b/src/openvpn/syshead.h index 7a7d53a80..f957a10e2 100644 --- a/src/openvpn/syshead.h +++ b/src/openvpn/syshead.h @@ -349,6 +349,14 @@ #endif /* TARGET_DRAGONFLY */ +#ifdef TARGET_DARWIN + +#ifdef HAVE_NETINET_TCP_H +#include +#endif + +#endif /* TARGET_DARWIN */ + #ifdef WIN32 #include #include