opnsense-ports/security/tcpcrypt/files/patch-unix.c
Franco Fichtner 8c34d21606 */*: bring in previously unknown upstream stuff
Taken from: FreeBSD
2015-04-22 06:26:02 +02:00

17 lines
443 B
C

--- 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