summaryrefslogtreecommitdiff
path: root/security/tcpcrypt/files/patch-unix.c
diff options
context:
space:
mode:
authorJohn-Mark Gurney <jmg@FreeBSD.org>2014-11-13 02:19:55 +0000
committerJohn-Mark Gurney <jmg@FreeBSD.org>2014-11-13 02:19:55 +0000
commit1b24dbfd6443381c02ca8bee1a74c958501278f7 (patch)
treed0d6031bcf8ffe4cb3b741cb678937fd510d7447 /security/tcpcrypt/files/patch-unix.c
parentdatabases/cassandra2: update 2.0.10 -> 2.1.1 (diff)
add the tcpcrypt port... This provides an implementation of the
tcpcrypt protocol which tries to encrypt your tcp traffic w/o modification... www.tcpcrypt.org for more info.. Approved by: bdrewery
Notes
Notes: svn path=/head/; revision=372508
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