diff options
Diffstat (limited to 'ractor_core.h')
-rw-r--r-- | ractor_core.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ractor_core.h b/ractor_core.h index dd662141a0..6e9a63dc28 100644 --- a/ractor_core.h +++ b/ractor_core.h @@ -36,6 +36,8 @@ struct rb_ractor_waiting_list { rb_ractor_t **ractors; }; +struct rb_random_struct; // c.f. ruby/random.h + struct rb_ractor_struct { // ractor lock rb_nativethread_lock_t lock; @@ -127,7 +129,7 @@ struct rb_ractor_struct { VALUE verbose; VALUE debug; - void *default_rand; // used in random.c + struct rb_random_struct *default_rand; // used in random.c // gc.c rb_objspace_reachable_objects_from struct gc_mark_func_data_struct { |