From a56cb65bd6fc8360017fddc6fc4531a3e7319955 Mon Sep 17 00:00:00 2001 From: Adam Majer Date: Fri, 23 Sep 2022 01:19:44 +0200 Subject: [PATCH] test: fix addon tests compilation with OpenSSL 1.1.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 PR-URL: https://github.com/nodejs/node/pull/44725 Reviewed-By: Richard Lau Reviewed-By: Darshan Sen Reviewed-By: Tobias Nießen --- test/addons/openssl-providers/binding.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/addons/openssl-providers/binding.cc b/test/addons/openssl-providers/binding.cc index b65f168fdaf4cd..76cd076c1d953c 100644 --- a/test/addons/openssl-providers/binding.cc +++ b/test/addons/openssl-providers/binding.cc @@ -1,6 +1,10 @@ #include #include + +#include +#if OPENSSL_VERSION_MAJOR >= 3 #include +#endif namespace {