diff options
author | James Bekkema <james@sparklabs.com> | 2014-06-26 21:40:39 +1000 |
---|---|---|
committer | Gert Doering <gert@greenie.muc.de> | 2014-06-30 16:49:38 +0200 |
commit | 37170767a221a4847416fc339083704ae1b4c001 (patch) | |
tree | 80a5ea0ed9fa3a818226d8bd3ce17cc187344311 | |
parent | b443772bb6fa9177ab015e8b69fbd804cfffee6b (diff) | |
download | openvpn-37170767a221a4847416fc339083704ae1b4c001.tar.gz openvpn-37170767a221a4847416fc339083704ae1b4c001.tar.xz openvpn-37170767a221a4847416fc339083704ae1b4c001.zip |
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 <netinet/tcp.h> on
Darwin platforms.
Acked-by: Arne Schwabe <arne@rfc2549.org>
Message-Id: <A1005665-126D-45D5-A6F2-75ED0EAE30FE@sparklabs.com>
URL: http://article.gmane.org/gmane.network.openvpn.devel/8809
Signed-off-by: Gert Doering <gert@greenie.muc.de>
-rw-r--r-- | src/openvpn/syshead.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/openvpn/syshead.h b/src/openvpn/syshead.h index 4050d54..22ea5a0 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 <netinet/tcp.h> +#endif + +#endif /* TARGET_DARWIN */ + #ifdef WIN32 #include <iphlpapi.h> #include <ntddndis.h> |