* sys_term.h: fix linux lossage, i.e. <linux/tty.h>
authorTom Yu <tlyu@mit.edu>
Thu, 4 Aug 1994 17:21:47 +0000 (17:21 +0000)
committerTom Yu <tlyu@mit.edu>
Thu, 4 Aug 1994 17:21:47 +0000 (17:21 +0000)
* configure.in: check for STREAMSPTY (hopefully)

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

src/appl/telnet/telnetd/ChangeLog
src/appl/telnet/telnetd/configure.in
src/appl/telnet/telnetd/sys_term.c

index fc217567140670e40d49dbee8b5f7ce1913980d9..e8877deddde69f80823abbab0f55981b4fb85f61 100644 (file)
@@ -1,5 +1,8 @@
 Thu Aug  4 03:37:26 1994  Tom Yu  (tlyu@dragons-lair)
 
+       * sys_term.h: fix linux lossage, i.e. <linux/tty.h>
+       * configure.in: check for STREAMSPTY (hopefully)
+
        * Makefile.in:
        * configure.in: make install changes
 
index e1b3cf93631e7ec7548290bcd0147d081d518115..bd0731a5d1bcbd6a13fba4f602106aab79e1f2d7 100644 (file)
@@ -18,6 +18,7 @@ AC_COMPILE_CHECK([cc_t],[#include <termio.h>],
 [cc_t foo;],,AC_DEFINE(NO_CC_T))
 fi
 fi
+AC_FUNC_CHECK(grantpt,AC_DEFINE(STREAMSPTY))
 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))
index 5181dc268320e204d3acfbca396c8c9665bccee4..d356f2354585e0d53d5374dcfa3794dd72251f41 100644 (file)
@@ -110,7 +110,11 @@ extern struct sysv sysv;
 #include <sys/resource.h>
 #include <sys/proc.h>
 #endif
+#ifndef linux
 #include <sys/tty.h>
+#else
+#include <linux/tty.h>
+#endif
 #ifdef t_erase
 #undef t_erase
 #undef t_kill