From c9419bf8c30e140c5e42575447195e13d8538fd1 Mon Sep 17 00:00:00 2001 From: Adam Majer Date: Mon, 19 Sep 2022 14:13:35 +0200 Subject: [PATCH] test: fix addon tests compilation with OpenSSL 1.1.1 openssl/provider.h header is not part of OpenSSL 1.1.1 so do not include it when building with an older instance. Fixes: https://github.com/nodejs/node/issues/44722 --- test/addons/openssl-providers/binding.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/addons/openssl-providers/binding.cc b/test/addons/openssl-providers/binding.cc index b65f168fdaf4cd..4993bf660fb7fb 100644 --- a/test/addons/openssl-providers/binding.cc +++ b/test/addons/openssl-providers/binding.cc @@ -1,6 +1,9 @@ #include #include + +#if OPENSSL_VERSION_MAJOR >= 3 #include +#endif namespace {