summaryrefslogtreecommitdiff
path: root/ext/io/console/extconf.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-02-16 03:47:21 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-02-16 03:47:21 +0000
commit6ba2001d72c05c59bb973d7934c324263552b5c9 (patch)
tree634ed2325de75d0cb84cb16751ba7857a16a1bb1 /ext/io/console/extconf.rb
parent44c24d4416a9c3f36010dcf0593e5dce21183d19 (diff)
io/console: compatibility with 1.8
* ext/io/console/console.c (console_dev): compatibility with ruby 1.8. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39269 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/io/console/extconf.rb')
-rw-r--r--ext/io/console/extconf.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/io/console/extconf.rb b/ext/io/console/extconf.rb
index 918f86b27f..79f5838c5e 100644
--- a/ext/io/console/extconf.rb
+++ b/ext/io/console/extconf.rb
@@ -12,6 +12,8 @@ when have_header(hdr = "sgtty.h")
else
ok = false
end
+ok &&= enable_config("io-console-force-compatible-with-1.8") ||
+ macro_defined?("HAVE_RUBY_IO_H", "ruby.h")
if ok
have_header("sys/ioctl.h")
have_func("rb_check_hash_type", "ruby.h")