ports/net/mosquitto/files/patch-lib_tls__mosq.h
Olli Hauer 7f7d823800 - update to 1.4.2
The Python driver is now provided by net/py-paho-mqtt!

More drivers can be found at http://eclipse.org/paho

PR:		200540
Submitted by:	ohauer
Approved by:	Joseph Benden <joe@thrallingpenguin.com> (maintainer, via PM)
2015-07-04 09:14:06 +00:00

13 lines
402 B
C

--- lib/tls_mosq.h.orig 2015-05-07 13:21:22 UTC
+++ lib/tls_mosq.h
@@ -20,8 +20,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."