From e5860e565467cb330f2c7b9ae140a1e4b89c0b71 Mon Sep 17 00:00:00 2001 From: HoneyryderChuck Date: Tue, 29 Oct 2024 16:48:57 +0000 Subject: [PATCH] [ruby/openssl] move ractor safe macro to ossl.h in order to import or define the RUBY_TYPED_FROZEN_SHAREABLE macro. https://github.com/ruby/openssl/commit/b8504c2215 --- 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 c3140ac3ef..dde2c54f02 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 2d310c4741..ea19914c57 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 { \