diff options
Diffstat (limited to 'ext/stringio/stringio.c')
-rw-r--r-- | ext/stringio/stringio.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/stringio/stringio.c b/ext/stringio/stringio.c index bb7c0e6e4e..228063d79b 100644 --- a/ext/stringio/stringio.c +++ b/ext/stringio/stringio.c @@ -1750,6 +1750,11 @@ void Init_stringio(void) { #undef rb_intern + +#ifdef HAVE_RB_EXT_RACTOR_SAFE + rb_ext_ractor_safe(true); +#endif + VALUE StringIO = rb_define_class("StringIO", rb_cData); rb_define_const(StringIO, "VERSION", rb_str_new_cstr(STRINGIO_VERSION)); |