freebsd-ports/security/openvpn/files/patch-src__openvpn__syshead.h
Matthias Andree 51939c51c1 OpenVPN changes, upgrades and fixes:
- Upgrade security/openvpn to v2.3.0 (changes installed layout a bit),
  splitting and re-diffing patches.
- Retain v2.2.2 as security/openvpn22
- Mark security/openvpn20 as deprecated and to expire 6 months from now
- Fix TCP_NODELAY option (openvpn 2.3, 2.2), see
  <http://community.openvpn.net/openvpn/ticket/158>
- Fix PassTOS option (openvpn 2.2, 2.0), see
  http://community.openvpn.net/openvpn/ticket/135
2013-01-11 23:09:37 +00:00

16 lines
410 B
C

Work around "missing" TCP_NODELAY,
obtained from: http://community.openvpn.net/openvpn/ticket/158
--- ./src/openvpn/syshead.h.orig 2012-11-22 13:07:51.000000000 +0100
+++ ./src/openvpn/syshead.h 2013-01-11 21:30:07.000000000 +0100
@@ -307,6 +307,10 @@
#include <netinet/ip.h>
#endif
+#ifdef HAVE_NETINET_TCP_H
+#include <netinet/tcp.h>
+#endif
+
#ifdef HAVE_NET_IF_TUN_H
#include <net/if_tun.h>
#endif