* krlogin.c (mode): ifdef VLNEXT instead of svr4 for ^V fixing.
authorMark Eichin <eichin@mit.edu>
Thu, 29 Sep 1994 21:57:40 +0000 (21:57 +0000)
committerMark Eichin <eichin@mit.edu>
Thu, 29 Sep 1994 21:57:40 +0000 (21:57 +0000)
(doit): ditto.
krlogin.c, configure.in: include sys/tty.h and sys/ttold.h only if
they're both there.

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

src/appl/bsd/ChangeLog
src/appl/bsd/configure.in
src/appl/bsd/krlogin.c

index 972964a9c4e5785d1e0417822f8c9066cc154045..b1d4f0de99e0d6ed6c86d41886d5656da206ada4 100644 (file)
@@ -1,7 +1,16 @@
+Thu Sep 29 17:55:57 1994  Mark Eichin  (eichin@tweedledumber.cygnus.com)
+
+       * krlogin.c (mode): ifdef VLNEXT instead of svr4 for ^V fixing.
+       (doit): ditto.
+       krlogin.c, configure.in: include sys/tty.h and sys/ttold.h only if
+       they're both there. 
+
+
 Wed Sep 28 20:57:24 1994  Mark Eichin  (eichin@tweedledumber.cygnus.com)
 
        * configure.in (srand48): check for srand48, and if it exists,
        substitute it for srandom (and lrand48 for random.)
+       (K4LIB): add libdes.a, needed for des_pcbc_encrypt.
 
 Wed Sep 28 14:36:29 1994  Mark Eichin  (eichin@rtl.cygnus.com)
 
index 431c8e033ce1c12a5c059826b258cd3f5205434e..3d28a02d7ad0b9efe7e69ced6a4e6ce87b6ff6ef 100644 (file)
@@ -39,7 +39,7 @@ AC_COMPILE_CHECK([sigset_t],
 [#include <signal.h>],
 [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)
+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_REPLACE_FUNCS(getdtablesize)
 CHECK_DIRENT
 CHECK_FCNTL
index 041ce72ed9c937cee86e6738e6d8f11e7d7f8d53..2f309f496d04a7a3adc18469d902330c330c05e4 100644 (file)
@@ -87,7 +87,8 @@ char copyright[] =
 /****** MWE *****/
 
 /****** MWE *****/
-#ifdef __svr4__
+/* formerly __svr4__ but that's not defined by suncc */
+#if defined(HAVE_SYS_TTY_H) && defined(HAVE_SYS_TTOLD_H)
 #include <sys/tty.h>
 #include <sys/ttold.h>
 #ifdef HAVE_SYS_PTYVAR_H
@@ -707,7 +708,8 @@ doit(oldmask)
 {
 #ifdef POSIX_TERMIOS
        (void) tcgetattr(0, &deftty);
-#ifdef __svr4__
+/* was __svr4__ */
+#ifdef VLNEXT
        /* there's a POSIX way of doing this, but do we need it general? */
        deftty.c_cc[VLNEXT] = 0;
 #endif
@@ -1334,7 +1336,8 @@ mode(f)
                break;
        case 1:
                (void) tcgetattr(0, &newtty);
-#ifdef __svr4__
+/* was __svr4__ */
+#ifdef VLNEXT
        /* there's a POSIX way of doing this, but do we need it general? */
                newtty.c_cc[VLNEXT] = 0;
 #endif