diff options
author | Theodore Tso <tytso@mit.edu> | 1995-06-22 18:51:04 +0000 |
---|---|---|
committer | Theodore Tso <tytso@mit.edu> | 1995-06-22 18:51:04 +0000 |
commit | d84d59a45a9203ba179a213f5d2281be4da07b00 (patch) | |
tree | 5d1060e3a895688c64ecc7be895d2e305b1b5748 /src | |
parent | b330f36dfa8aaadbbf102ff44b551bac829cfac4 (diff) | |
download | krb5-d84d59a45a9203ba179a213f5d2281be4da07b00.tar.gz krb5-d84d59a45a9203ba179a213f5d2281be4da07b00.tar.xz krb5-d84d59a45a9203ba179a213f5d2281be4da07b00.zip |
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.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6125 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r-- | src/appl/bsd/ChangeLog | 9 | ||||
-rw-r--r-- | src/appl/bsd/configure.in | 2 | ||||
-rw-r--r-- | src/appl/bsd/krsh.c | 10 |
3 files changed, 18 insertions, 3 deletions
diff --git a/src/appl/bsd/ChangeLog b/src/appl/bsd/ChangeLog index 2e69e25b8b..6b2e2a24b7 100644 --- a/src/appl/bsd/ChangeLog +++ b/src/appl/bsd/ChangeLog @@ -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. diff --git a/src/appl/bsd/configure.in b/src/appl/bsd/configure.in index 57fa831077..616f7fe3a3 100644 --- a/src/appl/bsd/configure.in +++ b/src/appl/bsd/configure.in @@ -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 diff --git a/src/appl/bsd/krsh.c b/src/appl/bsd/krsh.c index 74e4f0dc30..04eb369888 100644 --- a/src/appl/bsd/krsh.c +++ b/src/appl/bsd/krsh.c @@ -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 */ /* |