From fa3da3cf09af1b688295d27ac96e55f115d8ffd2 Mon Sep 17 00:00:00 2001 From: Bodo Möller Date: Thu, 8 Apr 1999 17:10:27 +0000 Subject: Be more optimistic about the availability of termios for ~ECHO, because sgtty emulation tends to fail on various systems. Submitted by: Reviewed by: PR: --- crypto/des/read_pwd.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'crypto') diff --git a/crypto/des/read_pwd.c b/crypto/des/read_pwd.c index 1dffe083ac..db59c4c040 100644 --- a/crypto/des/read_pwd.c +++ b/crypto/des/read_pwd.c @@ -56,7 +56,22 @@ * [including the GNU Public Licence.] */ +#if !defined(MSDOS) && !defined(VMS) +#include +/* If unistd.h defines _POSIX_VERSION, we conclude that we + * are on a POSIX system and have sigaction and termios. */ +#if defined(_POSIX_VERSION) + +# define SIGACTION +# if !defined(TERMIOS) && !defined(TERMIO) && !defined(SGTTY) +# define TERMIOS +# endif + +#endif +#endif + /* #define SIGACTION */ /* Define this if you have sigaction() */ + #ifdef WIN16TTY #undef WIN16 #undef _WINDOWS -- cgit v1.2.3