From: Theodore Tso Date: Tue, 29 Sep 1992 14:01:34 +0000 (+0000) Subject: #ifdef cleanup X-Git-Tag: krb5-1.0-beta2~33 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=27a96988f439500845512019d3cd19f3a68404ed;p=krb5.git #ifdef cleanup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2429 dc483132-0cff-0310-8789-dd5450dbe970 --- 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;