From d3b710b0da49a8c7b6516dc32d4be65fe602cb39 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Tue, 12 May 2020 09:52:27 -0600 Subject: [PATCH] cfmakeraw(3) is broken on AIX, don't use it there The cfmakeraw(3) function exists but does not set VMIN to 1 or VTIME to 0 in c_cc[] in struct termios, which makes it useless. The AIX version also doesn't clear the CSIZE and PARENB flags from c_cflag. --- configure | 3 +++ configure.ac | 3 +++ 2 files changed, 6 insertions(+) diff --git a/configure b/configure index 41fe11ae2..9b36de251 100755 --- a/configure +++ b/configure @@ -15605,6 +15605,9 @@ fi *) RTLD_PRELOAD_VAR="LDR_PRELOAD";; esac + # cfmakeraw is broken on AIX (and is not documented) + : ${ac_cv_func_cfmakeraw='no'} + # strnlen/strndup may be broken on AIX < 6 depending # on the libc version, use our own. if test $OSMAJOR -lt 6; then diff --git a/configure.ac b/configure.ac index bf345c24c..aa9dc0ce0 100644 --- a/configure.ac +++ b/configure.ac @@ -1894,6 +1894,9 @@ case "$host" in *) RTLD_PRELOAD_VAR="LDR_PRELOAD";; esac + # cfmakeraw is broken on AIX (and is not documented) + : ${ac_cv_func_cfmakeraw='no'} + # strnlen/strndup may be broken on AIX < 6 depending # on the libc version, use our own. if test $OSMAJOR -lt 6; then