From 6d066be5e5c134ec70befc7b77e503be73734b30 Mon Sep 17 00:00:00 2001 From: HoneyryderChuck Date: Tue, 29 Oct 2024 16:48:57 +0000 Subject: [PATCH] move ractor safe macro to openssl.h --- ext/openssl/ossl.h | 6 ++++++ ext/openssl/ossl_bn.c | 4 ---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/ext/openssl/ossl.h b/ext/openssl/ossl.h index c3140ac3e..dde2c54f0 100644 --- a/ext/openssl/ossl.h +++ b/ext/openssl/ossl.h @@ -17,6 +17,12 @@ #include #include #include +#ifdef HAVE_RUBY_RACTOR_H +#include +#else +#define RUBY_TYPED_FROZEN_SHAREABLE 0 +#endif + #include #include diff --git a/ext/openssl/ossl_bn.c b/ext/openssl/ossl_bn.c index 7393fdea5..837340151 100644 --- a/ext/openssl/ossl_bn.c +++ b/ext/openssl/ossl_bn.c @@ -10,10 +10,6 @@ /* modified by Michal Rokos */ #include "ossl.h" -#ifdef HAVE_RB_EXT_RACTOR_SAFE -#include -#endif - #define NewBN(klass) \ TypedData_Wrap_Struct((klass), &ossl_bn_type, 0) #define SetBN(obj, bn) do { \