mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[pty] do not check openpty twice if found in util library
This commit is contained in:
parent
9014c900b6
commit
520ac5da22
1 changed files with 2 additions and 2 deletions
|
@ -10,9 +10,9 @@ if /mswin|mingw|bccwin/ !~ RUBY_PLATFORM
|
|||
have_header("util.h") # OpenBSD openpty
|
||||
have_header("pty.h")
|
||||
have_header("pwd.h")
|
||||
have_library("util", "openpty")
|
||||
util = have_library("util", "openpty")
|
||||
if have_func("posix_openpt") or
|
||||
have_func("openpty") or
|
||||
(util or have_func("openpty")) or
|
||||
have_func("_getpty") or
|
||||
have_func("ptsname") or
|
||||
have_func("ioctl")
|
||||
|
|
Loading…
Reference in a new issue