ports/net/mosquitto/files/patch-lib_tls__mosq.h
Steve Wills 8b8dc3223e net/mosquitto update to 1.4.14
While here, make it PREFIX clean.

PR:		224210
Submitted by:	Manuel Stühn <freebsd@justmail.de>
Approved by:	Joseph Benden <joe@thrallingpenguin.com>
2017-12-11 04:01:46 +00:00

13 lines
402 B
C

--- lib/tls_mosq.h.orig 2017-07-10 22:46:01 UTC
+++ lib/tls_mosq.h
@@ -26,8 +26,9 @@ Contributors:
#ifdef WITH_TLS
#include <openssl/ssl.h>
+#include <sys/socket.h>
#ifdef WITH_TLS_PSK
-# if OPENSSL_VERSION_NUMBER >= 0x10000000
+# if OPENSSL_VERSION_NUMBER >= 0x10000000 && !defined(OPENSSL_NO_PSK)
# define REAL_WITH_TLS_PSK
# else
# warning "TLS-PSK not supported, openssl too old."