* 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)
#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>