diff options
author | brnrd <brnrd@FreeBSD.org> | 2018-04-03 20:50:30 +0800 |
---|---|---|
committer | brnrd <brnrd@FreeBSD.org> | 2018-04-03 20:50:30 +0800 |
commit | 38a2424fb22ba855b853492de7375f88793881a4 (patch) | |
tree | 570a069241a2766b27196668bbaff61b6fef0b99 | |
parent | f74f1e79204ab2df413b1b7a688005e68bde5e48 (diff) | |
download | freebsd-ports-gnome-38a2424fb22ba855b853492de7375f88793881a4.tar.gz freebsd-ports-gnome-38a2424fb22ba855b853492de7375f88793881a4.tar.zst freebsd-ports-gnome-38a2424fb22ba855b853492de7375f88793881a4.zip |
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)
-rw-r--r-- | dns/powerdns-recursor/files/patch-opensslsigners.cc | 12 | ||||
-rw-r--r-- | dns/powerdns-recursor40/patch-opensslsigners.cc | 12 |
2 files changed, 24 insertions, 0 deletions
diff --git a/dns/powerdns-recursor/files/patch-opensslsigners.cc b/dns/powerdns-recursor/files/patch-opensslsigners.cc new file mode 100644 index 000000000000..be96d5f57172 --- /dev/null +++ b/dns/powerdns-recursor/files/patch-opensslsigners.cc @@ -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; + diff --git a/dns/powerdns-recursor40/patch-opensslsigners.cc b/dns/powerdns-recursor40/patch-opensslsigners.cc new file mode 100644 index 000000000000..be96d5f57172 --- /dev/null +++ b/dns/powerdns-recursor40/patch-opensslsigners.cc @@ -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; + |