From aad88cc10ba268625aaa93ddcc6ff5036052c5cd Mon Sep 17 00:00:00 2001 From: Kenta Murata Date: Wed, 23 Dec 2020 16:51:16 +0900 Subject: [PATCH] [ruby/date] Define dummy RUBY_TYPED_FROZEN_SHAREABLE for old Ruby https://github.com/ruby/date/commit/9f3e90ad10 --- ext/date/date_core.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ext/date/date_core.c b/ext/date/date_core.c index 38deba6034..7e9bf16a07 100644 --- a/ext/date/date_core.c +++ b/ext/date/date_core.c @@ -2973,6 +2973,10 @@ d_lite_memsize(const void *ptr) return complex_dat_p(dat) ? sizeof(struct ComplexDateData) : sizeof(struct SimpleDateData); } +#ifndef HAVE_RB_EXT_RACTOR_SAFE +# define RUBY_TYPED_FROZEN_SHAREABLE 0 +#endif + static const rb_data_type_t d_lite_type = { "Date", {d_lite_gc_mark, RUBY_TYPED_DEFAULT_FREE, d_lite_memsize,},