opnsense-ports/devel/librelp/files/patch-src__tcp.c
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

14 lines
327 B
C

--- ./src/tcp.c.orig 2014-04-22 07:33:25.000000000 -0600
+++ ./src/tcp.c 2014-05-17 10:49:10.247327329 -0600
@@ -62,7 +62,10 @@
static int called_gnutls_global_init = 0;
#endif
-
+#include <netdb.h>
+#ifndef SOL_TCP
+#define SOL_TCP (getprotobyname("TCP")->p_proto)
+#endif
#ifdef ENABLE_TLS
/* forward definitions */