From c97bb3a160cbe56b03769f22f4d5a588746cfdf1 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Tue, 8 Nov 1994 03:52:25 +0000 Subject: [PATCH] Only include if HAVE_SYS_TTY_H is defined by configure git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4639 dc483132-0cff-0310-8789-dd5450dbe970 --- src/appl/telnet/telnetd/ChangeLog | 4 ++++ src/appl/telnet/telnetd/configure.in | 2 +- src/appl/telnet/telnetd/sys_term.c | 6 +++--- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/appl/telnet/telnetd/ChangeLog b/src/appl/telnet/telnetd/ChangeLog index 0c0cd286b..45410ff59 100644 --- a/src/appl/telnet/telnetd/ChangeLog +++ b/src/appl/telnet/telnetd/ChangeLog @@ -1,5 +1,9 @@ Mon Nov 7 22:16:51 1994 Theodore Y. Ts'o (tytso@dcl) + * configure.in: + sys_term.c: Only include if HAVE_SYS_TTY_H is + defined by configure. + * configure.in: Check for sys/time.h and time.h. * defs.h: Pull in and as necessary. diff --git a/src/appl/telnet/telnetd/configure.in b/src/appl/telnet/telnetd/configure.in index db8163f8d..b8625bb07 100644 --- a/src/appl/telnet/telnetd/configure.in +++ b/src/appl/telnet/telnetd/configure.in @@ -24,7 +24,7 @@ AC_COMPILE_CHECK([cc_t],[#include ], fi fi AC_HEADER_TIME -AC_CHECK_HEADERS(sys/time.h) +AC_CHECK_HEADERS(sys/time.h sys/tty.h) AC_HAVE_FUNCS(vhangup) AC_FUNC_CHECK(grantpt,AC_DEFINE(STREAMSPTY)) AC_FUNC_CHECK(gettosbyname,AC_DEFINE(HAS_GETTOS)) diff --git a/src/appl/telnet/telnetd/sys_term.c b/src/appl/telnet/telnetd/sys_term.c index 79ae78f1d..8142b7152 100644 --- a/src/appl/telnet/telnetd/sys_term.c +++ b/src/appl/telnet/telnetd/sys_term.c @@ -108,11 +108,11 @@ extern struct sysv sysv; #include #include #endif -#ifndef linux + /* For what platforms do we really need sys/tty.h? */ +#ifdef HAVE_SYS_TTY_H #include -#else -#include #endif + #ifdef t_erase #undef t_erase #undef t_kill -- 2.26.2