summaryrefslogtreecommitdiff
path: root/ext/ffi_c/compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'ext/ffi_c/compat.h')
-rw-r--r--ext/ffi_c/compat.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/ffi_c/compat.h b/ext/ffi_c/compat.h
index a8fdcbe..27a99be 100644
--- a/ext/ffi_c/compat.h
+++ b/ext/ffi_c/compat.h
@@ -98,5 +98,8 @@
#define FFI_RUBY_TYPED_FROZEN_SHAREABLE RUBY_TYPED_FROZEN_SHAREABLE
#endif
+#ifndef HAVE_RB_EXT_RACTOR_SAFE
+#define rb_ractor_make_shareable(self) rb_obj_freeze(self);
+#endif
#endif /* RBFFI_COMPAT_H */