* configure.in:
authorTom Yu <tlyu@mit.edu>
Thu, 4 Aug 1994 20:42:52 +0000 (20:42 +0000)
committerTom Yu <tlyu@mit.edu>
Thu, 4 Aug 1994 20:42:52 +0000 (20:42 +0000)
* kpropd.c: include <sgtty.h> only if POSIX_TERMIOS is not defined

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

src/slave/ChangeLog
src/slave/configure.in
src/slave/kpropd.c

index c805c4557d94d2738d6e67ad5b9e3a5b9e75f078..0c5e4c648e9bd5018bb3b24c3da96b941305e6cb 100644 (file)
@@ -1,3 +1,8 @@
+Thu Aug  4 15:15:00 1994  Tom Yu  (tlyu@dragons-lair)
+
+       * configure.in:
+       * kpropd.c: include <sgtty.h> only if POSIX_TERMIOS is not defined
+
 Sat Jul 16 00:01:41 1994  Theodore Y. Ts'o  (tytso at tsx-11)
 
        * kpropd.c (do_standalone): Replace detach_process() with call to
index a37d4a901c376b62f47619b4e4840df7dc1b99d9..fae0c9cf332f141f7c5534f0c565167aa1a12022 100644 (file)
@@ -3,6 +3,7 @@ WITH_CCOPTS
 CONFIG_RULES
 AC_SET_BUILDTOP
 AC_PROG_INSTALL
+AC_HEADER_CHECK(termios.h,AC_FUNC_CHECK([tcsetattr],AC_DEFINE(POSIX_TERMIOS)))
 AC_HAVE_LIBRARY(socket)
 AC_HAVE_LIBRARY(nsl)
 AC_HAVE_LIBRARY(util)
index cce7ca042e71d76f97db3568a14f112d73fe0340..0a3e22d78eebfe6a9a80a8bf507d4a5408b87fe2 100644 (file)
@@ -40,7 +40,9 @@ static char rcsid_kpropd_c[] =
 #include <sys/file.h>
 #include <signal.h>
 #include <string.h>
+#ifndef POSIX_TERMIOS
 #include <sgtty.h>
+#endif
 #include <fcntl.h>
 #include <sys/types.h>
 #include <sys/time.h>