From df4f8aa248ed959938e0071ec75fb6a615eed4e8 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Tue, 9 Feb 2021 17:38:52 +0900 Subject: [PATCH] [ruby/io-console] Fixed regression against 3.0 --- ext/io/console/extconf.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ext/io/console/extconf.rb b/ext/io/console/extconf.rb index 40af8c0b72..32ad9d3311 100644 --- a/ext/io/console/extconf.rb +++ b/ext/io/console/extconf.rb @@ -24,7 +24,9 @@ when true # rb_funcallv: 2.1.0 # RARRAY_CONST_PTR: 2.1.0 # rb_sym2str: 2.2.0 - if have_func("rb_fiber_scheduler_make_timeout") + if have_macro("HAVE_RUBY_FIBER_SCHEDULER_H") + $defs << "-D""HAVE_RB_IO_WAIT=1" + elsif have_func("rb_scheduler_timeout") # 3.0 have_func("rb_io_wait") end $defs << "-D""ENABLE_IO_GETPASS=1"