1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/io-console] Fixed regression against 3.0

This commit is contained in:
Nobuyoshi Nakada 2021-02-09 17:38:52 +09:00
parent 96441b91a6
commit df4f8aa248
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -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"