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 { \