summaryrefslogtreecommitdiff
path: root/ext/openssl/ossl.c
diff options
context:
space:
mode:
authorTom Stuart <tom.stuart@shopify.com>2021-03-25 17:42:59 +0000
committerKazuki Yamaguchi <k@rhe.jp>2021-03-31 18:05:08 +0900
commit8b2f2a707de54ad24d787ff0bce67ed8c68cdded (patch)
tree559f337f68c880a5d748507748edeba4f7548622 /ext/openssl/ossl.c
parent5ab2625243ddb0aca03febcf61b792ebab4eb4e8 (diff)
[ruby/openssl] Use #ifdef consistently for HAVE_RB_EXT_RACTOR_SAFE
We previously used a mix of both `#if` and `#ifdef`, but the latter is more reliable because it will still work if the macro is undefined. https://github.com/ruby/openssl/commit/e4a622e67e
Diffstat (limited to 'ext/openssl/ossl.c')
-rw-r--r--ext/openssl/ossl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/openssl/ossl.c b/ext/openssl/ossl.c
index 7bdf3a2ef0..70b6a6a806 100644
--- a/ext/openssl/ossl.c
+++ b/ext/openssl/ossl.c
@@ -1129,7 +1129,7 @@ ossl_crypto_fixed_length_secure_compare(VALUE dummy, VALUE str1, VALUE str2)
void
Init_openssl(void)
{
-#if HAVE_RB_EXT_RACTOR_SAFE
+#ifdef HAVE_RB_EXT_RACTOR_SAFE
rb_ext_ractor_safe(true);
#endif