configure.in: Change AC_HAVE_HEADERS with AC_CHECK_HEADERS, and check for
authorTheodore Tso <tytso@mit.edu>
Thu, 22 Jun 1995 18:51:04 +0000 (18:51 +0000)
committerTheodore Tso <tytso@mit.edu>
Thu, 22 Jun 1995 18:51:04 +0000 (18:51 +0000)
string.h as well.

krsh.c: Don't include ext-proto.h; move the #include of the header files
which we actually needed into krsh.c, using the autoconf
standard define's.

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

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

index 2e69e25b8b2b3002f9e3ffb48114eb22b7e7abdb..6b2e2a24b7e646e6cb3bff058ab539f7526e6335 100644 (file)
@@ -1,3 +1,12 @@
+Thu Jun 22 14:36:46 1995  Theodore Y. Ts'o  <tytso@dcl>
+
+       * configure.in: Change AC_HAVE_HEADERS with AC_CHECK_HEADERS, and
+               check for string.h as well.
+
+       * krsh.c: Don't include ext-proto.h; move the #include of the
+               header files which we actually needed into krsh.c, using
+               the autoconf standard define's.
+
 Wed Jun 21 17:29:27 1995  Ezra Peisach  <epeisach@kangaroo.mit.edu>
 
        * login.c: Change RETSIGTYPE to krb5_sigtype to be consistant.
index 57fa831077dd99f6479a05642fdbc4cd4a97504a..616f7fe3a31028a47e793eadf130b69df26d5dea 100644 (file)
@@ -48,7 +48,7 @@ AC_FUNC_CHECK(grantpt,AC_DEFINE(HAVE_GRANTPT))
 AC_FUNC_CHECK(openpty,AC_DEFINE(HAVE_OPENPTY))
 AC_FUNC_CHECK(setlogin,AC_DEFINE(HAVE_SETLOGIN))
 AC_FUNC_CHECK(logwtmp,AC_DEFINE(HAVE_LOGWTMP))
-AC_HAVE_HEADERS(sys/filio.h sys/sockio.h unistd.h stdlib.h sys/label.h sys/tty.h ttyent.h lastlog.h sys/select.h sys/ptyvar.h)
+AC_CHECK_HEADERS(unistd.h stdlib.h string.h sys/filio.h sys/sockio.h sys/label.h sys/tty.h ttyent.h lastlog.h sys/select.h sys/ptyvar.h)
 AC_REPLACE_FUNCS(getdtablesize)
 DECLARE_SYS_ERRLIST
 KRB5_SIGTYPE
index 74e4f0dc302594667fc8c11e6433fcbd23303c50..04eb3698889b1a711ad3ee29a5f17a90d7377c4a 100644 (file)
@@ -35,11 +35,18 @@ char copyright[] =
 
 #include <netinet/in.h>
 
-#include <stdio.h>
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+#ifdef HAVE_STRING_H
 #include <string.h>
+#else
+#include <strings.h>
+#endif
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
 #endif
+#include <stdio.h>
 #include <errno.h>
 #include <signal.h>
 #include <pwd.h>
@@ -58,7 +65,6 @@ char copyright[] =
 #include "krb5.h"
 #include "com_err.h"
 #include "defines.h"
-#include "ext-proto.h"
 #endif /* KERBEROS */
      
 /*