* configure.in (HAVE_STREAMS): test for streams interface headers
authorMark Eichin <eichin@mit.edu>
Tue, 18 Oct 1994 19:50:06 +0000 (19:50 +0000)
committerMark Eichin <eichin@mit.edu>
Tue, 18 Oct 1994 19:50:06 +0000 (19:50 +0000)
in a way that fails on sunos but works on solaris.
* krlogin.c: use HAVE_STREAMS.

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

src/appl/bsd/ChangeLog
src/appl/bsd/configure.in
src/appl/bsd/krlogin.c

index b2993648a80b050b3779cdeddc44b2f46839b45f..e351f5585e271c38f04eb937f1c02952516ee7fa 100644 (file)
@@ -1,3 +1,9 @@
+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.
+
 Tue Oct  4 17:14:38 1994  Theodore Y. Ts'o  (tytso@dcl)
 
        * krcp.c (tgt_keyproc): Add widen.h and narrow.h around
index 3d28a02d7ad0b9efe7e69ced6a4e6ce87b6ff6ef..cb9bc2289ea21d810420491796d2950b9f986080 100644 (file)
@@ -39,7 +39,12 @@ AC_COMPILE_CHECK([sigset_t],
 [#include <signal.h>],
 [sigset_t x],
 AC_DEFINE(POSIX_SIGNALS)))
-AC_HAVE_HEADERS(sys/filio.h sys/sockio.h unistd.h sys/label.h ttyent.h sys/ptyvar.h lastlog.h sys/select.h sys/tty.h sys/ttold.h)
+AC_HAVE_HEADERS(sys/filio.h sys/sockio.h unistd.h sys/label.h ttyent.h lastlog.h sys/select.h sys/ptyvar.h)
+AC_COMPILE_CHECK([use streams interface],
+[#include <sys/tty.h>
+#include <sys/ttyold.h>
+#include <sys/ptyvar.h>],
+[], AC_DEFINE(HAVE_STREAMS))
 AC_REPLACE_FUNCS(getdtablesize)
 CHECK_DIRENT
 CHECK_FCNTL
index 2f309f496d04a7a3adc18469d902330c330c05e4..29f61a16bb6a505021243c9c8a87b87fff2132a9 100644 (file)
@@ -88,14 +88,12 @@ char copyright[] =
 
 /****** MWE *****/
 /* formerly __svr4__ but that's not defined by suncc */
-#if defined(HAVE_SYS_TTY_H) && defined(HAVE_SYS_TTOLD_H)
+#ifdef HAVE_STREAMS
 #include <sys/tty.h>
 #include <sys/ttold.h>
-#ifdef HAVE_SYS_PTYVAR_H
 /* solaris actually uses packet mode, so the real macros are needed too */
 #include <sys/ptyvar.h>
 #endif
-#endif
 /****** MWE *****/
 
 /* how do we tell apart irix 5 and irix 4? */