Skip to content

Commit 8d264d3

Browse files
XrXrnobu
andcommitted
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. Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
1 parent 34ae7d9 commit 8d264d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/openssl/extconf.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def find_openssl_library
142142
have_func("EVP_MD_CTX_pkey_ctx", evp_h)
143143
have_func("X509_STORE_get_ex_data", x509_h)
144144
have_func("X509_STORE_set_ex_data", x509_h)
145-
have_func("X509_STORE_get_ex_new_index", x509_h)
145+
have_func("X509_STORE_get_ex_new_index(0, NULL, NULL, NULL, NULL)", x509_h)
146146
have_func("X509_CRL_get0_signature", x509_h)
147147
have_func("X509_REQ_get0_signature", x509_h)
148148
have_func("X509_REVOKED_get0_serialNumber", x509_h)

0 commit comments

Comments
 (0)