From: Mark Eichin Date: Tue, 18 Oct 1994 19:50:06 +0000 (+0000) Subject: * configure.in (HAVE_STREAMS): test for streams interface headers X-Git-Tag: krb5-1.0-beta5~1106 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=612e40162eaacf73c657c221d07841c9e3e2ecc4;p=krb5.git * 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. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4530 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/appl/bsd/ChangeLog b/src/appl/bsd/ChangeLog index b2993648a..e351f5585 100644 --- a/src/appl/bsd/ChangeLog +++ b/src/appl/bsd/ChangeLog @@ -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 diff --git a/src/appl/bsd/configure.in b/src/appl/bsd/configure.in index 3d28a02d7..cb9bc2289 100644 --- a/src/appl/bsd/configure.in +++ b/src/appl/bsd/configure.in @@ -39,7 +39,12 @@ AC_COMPILE_CHECK([sigset_t], [#include ], [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 +#include +#include ], +[], AC_DEFINE(HAVE_STREAMS)) AC_REPLACE_FUNCS(getdtablesize) CHECK_DIRENT CHECK_FCNTL diff --git a/src/appl/bsd/krlogin.c b/src/appl/bsd/krlogin.c index 2f309f496..29f61a16b 100644 --- a/src/appl/bsd/krlogin.c +++ b/src/appl/bsd/krlogin.c @@ -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 #include -#ifdef HAVE_SYS_PTYVAR_H /* solaris actually uses packet mode, so the real macros are needed too */ #include #endif -#endif /****** MWE *****/ /* how do we tell apart irix 5 and irix 4? */