From 0e406e8208146ca30b9a8347e04c5959ed291fee Mon Sep 17 00:00:00 2001 From: Sander Hoentjen Date: Fri, 5 Jul 2024 16:38:12 +0200 Subject: [PATCH] Don't include openssl/engine.h if it's not going to be used (cherry picked from commit ed4ee5924b14e263d79bd682cdd0ce48758b12df) --- pdns/libssl.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pdns/libssl.cc b/pdns/libssl.cc index f9e87aaa8616..f4af47ff63b8 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