Skip to content

Commit

Permalink
Fixed regression against 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Feb 10, 2021
1 parent 2f7f391 commit 4610435
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ext/io/console/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@
# 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"
Expand Down

0 comments on commit 4610435

Please sign in to comment.