aboutsummaryrefslogtreecommitdiffstats
path: root/ext/io/console/extconf.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-08 14:07:32 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-08 14:07:32 +0000
commit6f3830427d22f85373a1069148201a9c69d52a5c (patch)
treeabead1448983aa0f6917c9db543ef1bf840fc090 /ext/io/console/extconf.rb
parentf491696f4b1320f7e26801ec189f4f874400bc52 (diff)
downloadruby-6f3830427d22f85373a1069148201a9c69d52a5c.tar.gz
* ext/io/console/console.c (ttymode): save dupped file descriptors
and restore tty modes using them, so that original modes can be restored even if orignal fds are closed. [ruby-dev:41225] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27676 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/io/console/extconf.rb')
-rw-r--r--ext/io/console/extconf.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/io/console/extconf.rb b/ext/io/console/extconf.rb
index ac861848fa..57cd7ad87f 100644
--- a/ext/io/console/extconf.rb
+++ b/ext/io/console/extconf.rb
@@ -14,6 +14,7 @@ else
end
have_header("sys/ioctl.h")
have_func("rb_io_get_write_io", "ruby/io.h")
+have_func("dup3", "unistd.h")
if ok
create_makefile("io/console")
end