ports/dns/powerdns/files/patch-pdns_opensslsigners.cc
Bernard Spil 8fcc83a7f4 dns/powerdns: Fix build with LibreSSL 2.7
- LibreSSL 2.7 implements OpenSSL 1.1 API

PR:		227184
Approved by:	Ralf van der Enden <tremere cainites net> (maintainer)
2018-04-03 15:16:00 +00:00

12 lines
494 B
C++

--- pdns/opensslsigners.cc.orig 2018-02-16 09:52:29 UTC
+++ pdns/opensslsigners.cc
@@ -33,7 +33,8 @@
#include "opensslsigners.hh"
#include "dnssecinfra.hh"
-#if (OPENSSL_VERSION_NUMBER < 0x1010000fL || defined LIBRESSL_VERSION_NUMBER)
+#if (OPENSSL_VERSION_NUMBER < 0x1010000fL || \
+ (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070000fL))
/* OpenSSL < 1.1.0 needs support for threading/locking in the calling application. */
static pthread_mutex_t *openssllocks;