1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-16 07:58:04 +00:00
freebsd-ports/devel/librelp/files/patch-src__tcp.c
2014-05-17 20:16:32 +00:00

15 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 */