From 066202de18a13d67664534d10698eda1fdeab381 Mon Sep 17 00:00:00 2001 From: James Bekkema Date: Thu, 26 Jun 2014 21:40:39 +1000 Subject: [PATCH] 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) --- src/openvpn/syshead.h | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- 2.47.2