From e9efe91c70f6a0464be6b741720ac2331b4dbeff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Arko?= Date: Wed, 29 Oct 2025 21:02:04 -0700 Subject: [PATCH] fix segfault on static Ruby 3.4.7 --- ext/io/console/console.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ext/io/console/console.c b/ext/io/console/console.c index 3c8bb82..fdbd219 100644 --- a/ext/io/console/console.c +++ b/ext/io/console/console.c @@ -1878,6 +1878,8 @@ console_ttyname(VALUE io) # define console_ttyname rb_f_notimplement #endif +static void InitVM_console(void); + /* * IO console methods */ @@ -1907,10 +1909,10 @@ Init_console(void) #ifndef HAVE_RB_F_SEND id___send__ = rb_intern("__send__"); #endif - InitVM(console); + InitVM_console(); } -void +static void InitVM_console(void) { rb_define_method(rb_cIO, "raw", console_raw, -1);