From 56709edc8972a0de8dee523f00576f32ebefb4ad Mon Sep 17 00:00:00 2001 From: akr Date: Tue, 16 Dec 2008 10:49:12 +0000 Subject: * 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 --- ext/pty/extconf.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ext/pty/extconf.rb') diff --git a/ext/pty/extconf.rb b/ext/pty/extconf.rb index 87fbdc6024..b26600ab34 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") -- cgit v1.2.3