+Wed Apr 25 22:53:20 1995 Chris Provenzano (proven@mit.edu)
+
+ * configure.in, sys_term.c, telnetd.c : Have configure check for
+ sys/ptyvar.h and sac.h before .c files include it.
+
Sat Apr 22 00:52:01 1995 Theodore Y. Ts'o (tytso@dcl)
* telnetd.c (main): Don't use krb5_override_default_realm, as it
AC_CHECK_HEADERS(sys/time.h sys/tty.h)
AC_HAVE_FUNCS(vhangup)
AC_FUNC_CHECK(grantpt,AC_DEFINE(STREAMSPTY))
+AC_HEADER_CHECK(sac.h,AC_DEFINE(HAS_SAC))
+AC_HEADER_CHECK(sys/ptyvar.h,AC_DEFINE(HAS_PTYVAR))
AC_FUNC_CHECK(gettosbyname,AC_DEFINE(HAS_GETTOS))
AC_HEADER_CHECK(sys/filio.h,AC_DEFINE(FILIO_H))
AC_HEADER_CHECK(sys/stream.h,AC_DEFINE(STREAMS))
#endif /* NEWINIT */
#ifdef STREAMSPTY
-#include <sac.h>
+#ifdef HAS_SAC
+#include <sac.h>
+#endif
#include <sys/stropts.h>
#endif
int registerd_host_only = 0;
#ifdef STREAMSPTY
+#include <sys/stream.h>
# include <stropts.h>
# include <termio.h>
/* make sure we don't get the bsd version */
# include "/usr/include/sys/tty.h"
+#ifdef HAS_PTYVAR
# include <sys/ptyvar.h>
+#endif
/*
* Because of the way ptyibuf is used with streams messages, we need