From 5dae78b9d36be7e2adfb5f9cad78bb10d641e40a Mon Sep 17 00:00:00 2001 From: Alan Wu Date: Mon, 11 Jul 2022 16:55:39 -0400 Subject: [ruby/openssl] Pass arguments to check macro presence X509_STORE_get_ex_new_index() is a macro, so passing just its name to have_func() doesn't detect it. Pass an example call instead. https://github.com/ruby/openssl/commit/8d264d3e60 Co-authored-by: Nobuyoshi Nakada --- ext/openssl/extconf.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/openssl/extconf.rb') diff --git a/ext/openssl/extconf.rb b/ext/openssl/extconf.rb index 4a9ae5598d..f8be3e9e03 100644 --- a/ext/openssl/extconf.rb +++ b/ext/openssl/extconf.rb @@ -142,7 +142,7 @@ have_func("EVP_MD_CTX_free", evp_h) have_func("EVP_MD_CTX_pkey_ctx", evp_h) have_func("X509_STORE_get_ex_data", x509_h) have_func("X509_STORE_set_ex_data", x509_h) -have_func("X509_STORE_get_ex_new_index", x509_h) +have_func("X509_STORE_get_ex_new_index(0, NULL, NULL, NULL, NULL)", x509_h) have_func("X509_CRL_get0_signature", x509_h) have_func("X509_REQ_get0_signature", x509_h) have_func("X509_REVOKED_get0_serialNumber", x509_h) -- cgit v1.2.3