diff options
Diffstat (limited to 'ext/io/console/extconf.rb')
-rw-r--r-- | ext/io/console/extconf.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/io/console/extconf.rb b/ext/io/console/extconf.rb index a4dbd0ff04..381520a92c 100644 --- a/ext/io/console/extconf.rb +++ b/ext/io/console/extconf.rb @@ -6,7 +6,8 @@ hdr = nil case when macro_defined?("_WIN32", "") # rb_w32_map_errno: 1.8.7 - vk_header = ($nmake == ?m ? "{$(srcdir)}" : "") << "win32_vk.chksum" + vk_header = File.exist?("#$srcdir/win32_vk.list") ? "chksum" : "inc" + vk_header = "#{'{$(srcdir)}' if $nmake == ?m}win32_vk.#{vk_header}" when hdr = %w"termios.h termio.h".find {|h| have_header(h)} have_func("cfmakeraw", hdr) when have_header(hdr = "sgtty.h") |