Mon Nov 7 22:16:51 1994 Theodore Y. Ts'o (tytso@dcl)
+ * configure.in:
+ sys_term.c: Only include <sys/tty.h> if HAVE_SYS_TTY_H is
+ defined by configure.
+
* configure.in: Check for sys/time.h and time.h.
* defs.h: Pull in <sys/time.h> and <time.h> as necessary.
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))
#include <sys/resource.h>
#include <sys/proc.h>
#endif
-#ifndef linux
+ /* For what platforms do we really need sys/tty.h? */
+#ifdef HAVE_SYS_TTY_H
#include <sys/tty.h>
-#else
-#include <linux/tty.h>
#endif
+
#ifdef t_erase
#undef t_erase
#undef t_kill