From 27a96988f439500845512019d3cd19f3a68404ed Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Tue, 29 Sep 1992 14:01:34 +0000 Subject: [PATCH] #ifdef cleanup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2429 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/os/read_pwd.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/lib/krb5/os/read_pwd.c b/src/lib/krb5/os/read_pwd.c index aab05ed3f..e1063c3ce 100644 --- a/src/lib/krb5/os/read_pwd.c +++ b/src/lib/krb5/os/read_pwd.c @@ -56,11 +56,13 @@ extern int errno; #ifdef POSIX_TERMIOS #define cleanup(errcode) (void) signal(SIGINT, ointrfunc); tcsetattr(fd, TCSANOW, &save_control); return errcode; -#elif defined(sun) -#define cleanup(errcode) (void) signal(SIGINT, ointrfunc); stty(fd, (char *)&tty_savestate); return errcode; #else +#ifdef sun +#define cleanup(errcode) (void) signal(SIGINT, ointrfunc); stty(fd, (char *)&tty_savestate); return errcode; +#else /* !sun */ #define cleanup(errcode) (void) signal(SIGINT, ointrfunc); ioctl(fd, TIOCSETP, (char *)&tty_savestate); return errcode; -#endif +#endif /* sun */ +#endif /* POSIX_TERMIOS */ static jmp_buf pwd_jump; -- 2.26.2