summaryrefslogtreecommitdiff
path: root/ext/pty/extconf.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-16 10:49:12 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-16 10:49:12 +0000
commit56709edc8972a0de8dee523f00576f32ebefb4ad (patch)
tree3fb0bcebba1366187c66bfa8785e5f954fbf4264 /ext/pty/extconf.rb
parentce17decdfb5c785df7ca849178bfb74be5255553 (diff)
* ext/pty/extconf.rb: check posix_openpt.
* ext/pty/pty.c (get_device_once): use posix_openpt if available. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/pty/extconf.rb')
-rw-r--r--ext/pty/extconf.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/pty/extconf.rb b/ext/pty/extconf.rb
index 87fbdc6..b26600a 100644
--- a/ext/pty/extconf.rb
+++ b/ext/pty/extconf.rb
@@ -6,7 +6,8 @@ if /mswin|mingw|bccwin/ !~ RUBY_PLATFORM
have_header("libutil.h")
have_header("pty.h")
have_library("util", "openpty")
- if have_func("openpty") or
+ if have_func("posix_openpt") or
+ have_func("openpty") or
have_func("_getpty") or
have_func("ptsname") or
have_func("ioctl")