1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00

dns/powerdns-recursor: Fix build with LibreSSL 2.7

- LibreSSL 2.7 implements OpenSSL 1.1 API

PR:		227183
Approved by:	Ralf van der Enden <tremere cainites net> (maintainer)
This commit is contained in:
Bernard Spil 2018-04-03 12:50:30 +00:00
parent 8d2dfbfbdb
commit 36ef9ab669
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=466346
2 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,12 @@
--- opensslsigners.cc.orig 2018-01-22 13:39:07 UTC
+++ 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;

View File

@ -0,0 +1,12 @@
--- opensslsigners.cc.orig 2018-01-22 13:39:07 UTC
+++ 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;