diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-10-10 15:15:21 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-10-11 01:27:15 +0900 |
commit | b59640e155a5c1d166aaae4b7ccab936597930fc (patch) | |
tree | 98e3f0c72bb7cabe20a0dc6e35e5d27ea747c2ec /ext/io/console/extconf.rb | |
parent | bfc1c7205d9592b5b5be3b351fbf7b9ca8c537b6 (diff) | |
download | ruby-b59640e155a5c1d166aaae4b7ccab936597930fc.tar.gz |
[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
Diffstat (limited to 'ext/io/console/extconf.rb')
-rw-r--r-- | ext/io/console/extconf.rb | 3 |
1 files changed, 3 insertions, 0 deletions
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" |