* krlogind.c: use HAVE_STREAMS, fix TIOCPKT_* test
authorMark Eichin <eichin@mit.edu>
Tue, 18 Oct 1994 20:25:34 +0000 (20:25 +0000)
committerMark Eichin <eichin@mit.edu>
Tue, 18 Oct 1994 20:25:34 +0000 (20:25 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4533 dc483132-0cff-0310-8789-dd5450dbe970

src/appl/bsd/ChangeLog
src/appl/bsd/krlogind.c

index e351f5585e271c38f04eb937f1c02952516ee7fa..274da338b581a266482cb3b218d8957a55aaee59 100644 (file)
@@ -3,6 +3,7 @@ Tue Oct 18 15:48:37 1994  Mark Eichin  (eichin@cygnus.com)
        * configure.in (HAVE_STREAMS): test for streams interface headers
        in a way that fails on sunos but works on solaris.
        * krlogin.c: use HAVE_STREAMS.
+       * krlogind.c: use HAVE_STREAMS, fix TIOCPKT_* test.
 
 Tue Oct  4 17:14:38 1994  Theodore Y. Ts'o  (tytso@dcl)
 
index 6b54bb17e306747ebe82c65e1a81bc25988d6f4d..257ddbbdf986640e1f78b04e3aabd0cf1808f62d 100644 (file)
@@ -164,16 +164,19 @@ char copyright[] =
 #include <sys/tty.h>
 #endif
 
-#ifndef HAVE_SYS_PTYVAR_H
+#ifdef HAVE_STREAMS
+/* but solaris actually uses packet mode, so the real macros are needed too */
+#include <sys/ptyvar.h>
+#endif
+
+#ifndef TIOCPKT_NOSTOP
 /* These values are over-the-wire protocol, *not* local values */
 #define TIOCPKT_NOSTOP          0x10
 #define TIOCPKT_DOSTOP          0x20
 #define TIOCPKT_FLUSHWRITE      0x02
-#else
-/* but solaris actually uses packet mode, so the real macros are needed too */
-#include <sys/ptyvar.h>
 #endif
 
+
 #ifdef HAVE_SYS_FILIO_H
 /* get FIONBIO from sys/filio.h, so what if it is a compatibility feature */
 #include <sys/filio.h>