configure: Enable /dev/ptmx for Linux, Darwin.

Both of these systems have /dev/ptmx for creating pseudoterminals.
OS X Leopard (10.5) added it in 2007, and Linux has had support for
it since v2.1 (1998).

This fixes a bug with pseudoterminal creation on Linux and macOS
where a new pseudoterminal cannot be created because the wrong
method is being used to find one.
This commit is contained in:
Simon Howard 2020-01-25 01:05:52 -05:00 committed by GitHub
parent 01052ca89d
commit 507508b66d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -569,9 +569,6 @@ case "$host" in
*-*-hpux10.26) *-*-hpux10.26)
disable_ptmx_check=yes disable_ptmx_check=yes
;; ;;
*-*-linux*)
no_dev_ptmx=1
;;
mips-sony-bsd|mips-sony-newsos4) mips-sony-bsd|mips-sony-newsos4)
AC_DEFINE(HAVE_NEWS4, 1, [Define if you are on NEWS-OS (additions from openssh-3.2.2p1, for sshpty.c).]) AC_DEFINE(HAVE_NEWS4, 1, [Define if you are on NEWS-OS (additions from openssh-3.2.2p1, for sshpty.c).])
;; ;;
@ -585,7 +582,6 @@ mips-sony-bsd|mips-sony-newsos4)
no_dev_ptmx=1 no_dev_ptmx=1
;; ;;
*-*-darwin*) *-*-darwin*)
no_dev_ptmx=1
LIBS="$LIBS -lstdc++" LIBS="$LIBS -lstdc++"
;; ;;
*-*-freebsd*) *-*-freebsd*)