There was an error while loading. Please reload this page.
1 parent 4cfaca6 commit 28cdf86Copy full SHA for 28cdf86
1 file changed
ext/io/console/extconf.rb
@@ -23,6 +23,7 @@
23
hdr = nil
24
case
25
when macro_defined?("_WIN32", "")
26
+ win32 = true
27
# rb_w32_map_errno: 1.8.7
28
vk_header = File.exist?("#$srcdir/win32_vk.list") ? "chksum" : "inc"
29
vk_header = "#{'{$(srcdir)}' if $nmake == ?m}win32_vk.#{vk_header}"
@@ -47,7 +48,7 @@
47
48
elsif have_func("rb_scheduler_timeout") # Ruby 3.0 (internal)
49
have_func("rb_io_wait") # Ruby 3.0
50
end
- have_func("ttyname_r") or have_func("ttyname")
51
+ win32 or have_func("ttyname_r") or have_func("ttyname")
52
create_makefile("io/console") {|conf|
53
conf << "\n""VK_HEADER = #{vk_header}\n"
54
}
0 commit comments