summaryrefslogtreecommitdiff
path: root/security/tcpcrypt/files/patch-unix.c
diff options
context:
space:
mode:
Diffstat (limited to 'security/tcpcrypt/files/patch-unix.c')
-rw-r--r--security/tcpcrypt/files/patch-unix.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/security/tcpcrypt/files/patch-unix.c b/security/tcpcrypt/files/patch-unix.c
new file mode 100644
index 000000000000..c0a428315159
--- /dev/null
+++ b/security/tcpcrypt/files/patch-unix.c
@@ -0,0 +1,17 @@
+--- src/unix.c.orig 2014-09-10 16:22:26.000000000 -0700
++++ src/unix.c 2014-10-31 23:59:29.000000000 -0700
+@@ -57,7 +57,13 @@
+ s_in.sin_addr = ip->ip_dst;
+ s_in.sin_port = tcp->th_dport;
+
+-#if defined(__FreeBSD__) || defined(__DARWIN_UNIX03)
++#if defined(__FreeBSD__)
++#include <osreldate.h>
++#if __FreeBSD_version < 1000022
++ #define HO_LEN
++#endif
++#endif
++#ifdef __DARWIN_UNIX03
+ #define HO_LEN
+ #endif
+ #ifdef HO_LEN