From: Sander Hoentjen Date: Fri, 5 Jul 2024 14:38:12 +0000 (+0200) Subject: Don't include openssl/engine.h if it's not going to be used X-Git-Tag: dnsdist-1.9.6~3^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F14452%2Fhead;p=thirdparty%2Fpdns.git Don't include openssl/engine.h if it's not going to be used (cherry picked from commit ed4ee5924b14e263d79bd682cdd0ce48758b12df) --- diff --git a/pdns/libssl.cc b/pdns/libssl.cc index f9e87aaa86..f4af47ff63 100644 --- a/pdns/libssl.cc +++ b/pdns/libssl.cc @@ -12,9 +12,11 @@ #include #include +#if OPENSSL_VERSION_MAJOR < 3 || !defined(HAVE_TLS_PROVIDERS) #ifndef OPENSSL_NO_ENGINE #include #endif +#endif #include #ifndef DISABLE_OCSP_STAPLING #include