From 0308836e850f0c79e0a1313889fe5603b56faf59 Mon Sep 17 00:00:00 2001 From: Unknown User d91-jda Date: Mon, 10 Jul 1995 20:10:48 +0000 Subject: [PATCH] Some mucking with termio git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/des/read_pwd.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/des/read_pwd.c b/lib/des/read_pwd.c index 1aff7501b..1dcb866a7 100644 --- a/lib/des/read_pwd.c +++ b/lib/des/read_pwd.c @@ -14,7 +14,11 @@ #define sgttyb termio #define sg_flags c_lflag #else /* !CRAY */ +#ifndef USE_TERMIO #include +#else +#include +#endif #endif #include #else /* _IRIX */ @@ -125,7 +129,11 @@ read_pw(char *buf, char *buff, int size, char *prompt, int verify) { #ifndef VMS #ifndef MSDOS +#ifndef USE_TERMIO struct sgttyb tty_orig,tty_new; +#else + struct termios tty_orig, tty_new; +#endif #endif /* !MSDOS */ #else struct IOSB iosb; @@ -175,7 +183,11 @@ read_pw(char *buf, char *buff, int size, char *prompt, int verify) ps=1; #ifndef VMS #ifndef MSDOS +#ifndef USE_TERMIO tty_new.sg_flags &= ~ECHO; +#else + tty_new.c_lflag &= ~ECHO; +#endif #endif /* !MSDOS */ #ifdef TIOCSETP #ifdef USE_TERMIO