to *fail* that test, since it doesn't have a streams PTEM module
anyhow.
* krlogind.c: don't include sys/tty.h and sys/ptyvar.h if we don't
HAVE_STREAMS already.
* krlogin.c: do the same thing.
most of the files in appl/bsd should probably include one common
"system headers" include, since they duplicate so much (and not
consistently at that.) krlogind now works on SunOS 4.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4819
dc483132-0cff-0310-8789-
dd5450dbe970
+Wed Jan 18 01:07:56 1995 Mark Eichin <eichin@cygnus.com>
+
+ * configure.in: undo streams test. It turns out that we want sunos
+ to *fail* that test, since it doesn't have a streams PTEM module
+ anyhow.
+ * krlogind.c: don't include sys/tty.h and sys/ptyvar.h if we don't
+ HAVE_STREAMS already.
+ * krlogin.c: do the same thing.
+
Fri Jan 13 15:23:47 1995 Chris Provenzano (proven@mit.edu)
* Added krb5_context to all krb5_routines
AC_MSG_CHECKING([streams interface])
AC_CACHE_VAL(krb5_cv_has_streams,
[AC_TRY_COMPILE(
-[#include <sys/types.h>
-#include <sys/stream.h>
+[#include <sys/stream.h>
#include <sys/stropts.h>], [],
krb5_cv_has_streams=yes, krb5_cv_has_streams=no)])
AC_MSG_RESULT($krb5_cv_has_streams)
#include <sys/ptem.h>
#endif
+#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
+#endif
/* how do we tell apart irix 5 and irix 4? */
#if defined(__sgi) && defined(__mips)
#include <sys/param.h>
#include <utmp.h>
+#ifdef HAVE_STREAMS
+/* krlogin doesn't test sys/tty... */
#ifdef HAVE_SYS_TTY_H
#include <sys/tty.h>
#endif
/* Solaris actually uses packet mode, so the real macros are needed too */
#include <sys/ptyvar.h>
#endif
+#endif
#ifndef TIOCPKT_NOSTOP