#ifdef cleanup
authorTheodore Tso <tytso@mit.edu>
Tue, 29 Sep 1992 14:01:34 +0000 (14:01 +0000)
committerTheodore Tso <tytso@mit.edu>
Tue, 29 Sep 1992 14:01:34 +0000 (14:01 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2429 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/os/read_pwd.c

index aab05ed3fc51350ed2e435dd3e94b9204e2e7627..e1063c3cec1ac8925471fd47c1896bdd9b314a45 100644 (file)
@@ -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;