ruby-changes:60950
From: Nobuyoshi <ko1@a...>
Date: Fri, 1 May 2020 11:01:40 +0900 (JST)
Subject: [ruby-changes:60950] 520ac5da22 (master): [pty] do not check openpty twice if found in util library
https://git.ruby-lang.org/ruby.git/commit/?id=520ac5da22 From 520ac5da22c30d6db25de6dcbff9607d8a9cd870 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Fri, 1 May 2020 10:58:27 +0900 Subject: [pty] do not check openpty twice if found in util library diff --git a/ext/pty/extconf.rb b/ext/pty/extconf.rb index 7721a74..038bdf4 100644 --- a/ext/pty/extconf.rb +++ b/ext/pty/extconf.rb @@ -10,9 +10,9 @@ if /mswin|mingw|bccwin/ !~ RUBY_PLATFORM https://github.com/ruby/ruby/blob/trunk/ext/pty/extconf.rb#L10 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") -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/