mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/io-console] Just ignore the extension on other than CRuby
41b6f09574
This commit is contained in:
parent
dcb05179a9
commit
5ef383552d
1 changed files with 6 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
||||||
# frozen_string_literal: false
|
# frozen_string_literal: false
|
||||||
require 'mkmf'
|
require 'mkmf'
|
||||||
|
|
||||||
ok = true
|
ok = true if RUBY_ENGINE == "ruby"
|
||||||
hdr = nil
|
hdr = nil
|
||||||
case
|
case
|
||||||
when macro_defined?("_WIN32", "")
|
when macro_defined?("_WIN32", "")
|
||||||
|
@ -14,8 +14,9 @@ when have_header(hdr = "sgtty.h")
|
||||||
%w"stty gtty".each {|f| have_func(f, hdr)}
|
%w"stty gtty".each {|f| have_func(f, hdr)}
|
||||||
else
|
else
|
||||||
ok = false
|
ok = false
|
||||||
end
|
end if ok
|
||||||
if ok
|
case ok
|
||||||
|
when true
|
||||||
have_header("sys/ioctl.h") if hdr
|
have_header("sys/ioctl.h") if hdr
|
||||||
# rb_check_hash_type: 1.9.3
|
# rb_check_hash_type: 1.9.3
|
||||||
# rb_io_get_write_io: 1.9.1
|
# rb_io_get_write_io: 1.9.1
|
||||||
|
@ -27,4 +28,6 @@ if ok
|
||||||
create_makefile("io/console") {|conf|
|
create_makefile("io/console") {|conf|
|
||||||
conf << "\n""VK_HEADER = #{vk_header}\n"
|
conf << "\n""VK_HEADER = #{vk_header}\n"
|
||||||
}
|
}
|
||||||
|
when nil
|
||||||
|
File.write("Makefile", dummy_makefile($srcdir).join(""))
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue