summaryrefslogtreecommitdiff
path: root/ext/io
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-02-09 17:38:52 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-02-09 17:38:52 +0900
commitdf4f8aa248ed959938e0071ec75fb6a615eed4e8 (patch)
tree2cead1ecf578366a76f557e6ca2b64e8c46349f0 /ext/io
parent96441b91a689c66e94127c44e47d19d7af8482a2 (diff)
[ruby/io-console] Fixed regression against 3.0
Diffstat (limited to 'ext/io')
-rw-r--r--ext/io/console/extconf.rb4
1 files changed, 3 insertions, 1 deletions
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"