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: rec-5.2.0-alpha1~190^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F14431%2Fhead;p=thirdparty%2Fpdns.git Don't include openssl/engine.h if it's not going to be used --- diff --git a/pdns/libssl.cc b/pdns/libssl.cc index 3f1a86b0ce..b3629d15c2 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