aboutsummaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>1999-04-08 17:10:27 +0000
committerBodo Möller <bodo@openssl.org>1999-04-08 17:10:27 +0000
commitfa3da3cf09af1b688295d27ac96e55f115d8ffd2 (patch)
tree9a04d873778f9e632e4016e3e446cc7e365c1e86 /crypto
parentbacad008ebfa779fe2c18545b05c55433ecc4563 (diff)
downloadopenssl-fa3da3cf09af1b688295d27ac96e55f115d8ffd2.tar.gz
Be more optimistic about the availability of termios for ~ECHO,
because sgtty emulation tends to fail on various systems. Submitted by: Reviewed by: PR:
Diffstat (limited to 'crypto')
-rw-r--r--crypto/des/read_pwd.c15
1 files changed, 15 insertions, 0 deletions
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 <unistd.h>
+/* 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