From ed4ee5924b14e263d79bd682cdd0ce48758b12df 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 --- pdns/libssl.cc | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.47.2