1
0
Fork 0
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:
Nobuyoshi Nakada 2020-05-01 10:58:27 +09:00
parent 9014c900b6
commit 520ac5da22
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -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")