From b59640e155a5c1d166aaae4b7ccab936597930fc Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sat, 10 Oct 2020 15:15:21 +0900 Subject: [ruby/io-console] Fixed "Rework console to use `rb_io_wait`." * Fixed backward compatibility. * Added missing `rb_scheduler_timeout` declaration. https://github.com/ruby/io-console/commit/813806079f --- ext/io/console/extconf.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ext/io/console/extconf.rb') diff --git a/ext/io/console/extconf.rb b/ext/io/console/extconf.rb index 3d7e75e2af..3efdd6e092 100644 --- a/ext/io/console/extconf.rb +++ b/ext/io/console/extconf.rb @@ -24,6 +24,9 @@ when true # rb_funcallv: 2.1.0 # RARRAY_CONST_PTR: 2.1.0 # rb_sym2str: 2.2.0 + if have_func("rb_scheduler_timeout") + have_func("rb_io_wait") + end $defs << "-D""ENABLE_IO_GETPASS=1" create_makefile("io/console") {|conf| conf << "\n""VK_HEADER = #{vk_header}\n" -- cgit v1.2.1