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:
parent
96441b91a6
commit
df4f8aa248
1 changed files with 3 additions and 1 deletions
|
@ -24,7 +24,9 @@ when true
|
||||||
# rb_funcallv: 2.1.0
|
# rb_funcallv: 2.1.0
|
||||||
# RARRAY_CONST_PTR: 2.1.0
|
# RARRAY_CONST_PTR: 2.1.0
|
||||||
# rb_sym2str: 2.2.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")
|
have_func("rb_io_wait")
|
||||||
end
|
end
|
||||||
$defs << "-D""ENABLE_IO_GETPASS=1"
|
$defs << "-D""ENABLE_IO_GETPASS=1"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue