* krlogin.c
authorRichard Basch <probe@mit.edu>
Tue, 27 Dec 1994 19:47:11 +0000 (19:47 +0000)
committerRichard Basch <probe@mit.edu>
Tue, 27 Dec 1994 19:47:11 +0000 (19:47 +0000)
   Cleaned up some of the includes

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4759 dc483132-0cff-0310-8789-dd5450dbe970

src/appl/bsd/krlogin.c

index 6e4dc0b646e3751427f04c2d9ed34877b1ea2be3..508b0d3b58a10db1136d9a84682c54558cab296b 100644 (file)
@@ -77,32 +77,33 @@ char copyright[] =
 #ifdef _AIX
 #include <termio.h>
 #endif
-#endif
+#else /* POSIX_TERMIOS */
+#include <sgtty.h>
+#endif /* POSIX_TERMIOS */
 
 #ifdef HAVE_SYS_SOCKIO_H
 /* for SIOCATMARK */
 #include <sys/sockio.h>
 #endif
 
-/****** MWE *****/
+#ifdef HAVE_STREAMS
+#include <sys/stream.h>
+#include <sys/stropts.h>
+#endif
+
 #ifdef __SCO__
 /* for TIOCPKT_* */
 #include <sys/spt.h>
 /* for struct winsize */
-#include <sys/stream.h>
 #include <sys/ptem.h>
 #endif
-/****** MWE *****/
 
-/****** MWE *****/
-/* formerly __svr4__ but that's not defined by suncc */
-#ifdef HAVE_STREAMS
+#ifdef HAVE_SYS_PTYVAR_H
 #include <sys/tty.h>
 #include <sys/ttold.h>
 /* solaris actually uses packet mode, so the real macros are needed too */
 #include <sys/ptyvar.h>
 #endif
-/****** MWE *****/
 
 /* how do we tell apart irix 5 and irix 4? */
 #if defined(__sgi) && defined(__mips)
@@ -121,14 +122,11 @@ char copyright[] =
 #include <sys/ioctl_compat.h>
 #endif
 
-#ifdef POSIX_TERMIOS
 #ifdef CRAY
 #include <sys/ttold.h>
 #endif
-#else /* !POSIX_TERMIOS */
-#include <sgtty.h>
-#endif /* POSIX_TERMIOS */
-     
+
+
 #ifndef roundup
 #define roundup(x,y) ((((x)+(y)-1)/(y))*(y))
 #endif