From effb9f67de51cea25bf04981bee42454e20e990c Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Wed, 28 Aug 1996 21:50:38 +0000 Subject: [PATCH] utl_nohash_validate.c, util_canonhost.c, util_validate.c: Only include sys/types.h if present. configure.in: Add check for limits.h and sys/types.h git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8999 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/gssapi/generic/ChangeLog | 8 ++++++++ src/lib/gssapi/generic/configure.in | 2 +- src/lib/gssapi/generic/util_canonhost.c | 2 +- src/lib/gssapi/generic/util_validate.c | 2 ++ src/lib/gssapi/generic/utl_nohash_validate.c | 4 +++- 5 files changed, 15 insertions(+), 3 deletions(-) diff --git a/src/lib/gssapi/generic/ChangeLog b/src/lib/gssapi/generic/ChangeLog index 9d1e086b1..26d1f1d04 100644 --- a/src/lib/gssapi/generic/ChangeLog +++ b/src/lib/gssapi/generic/ChangeLog @@ -1,3 +1,11 @@ +Wed Aug 28 17:44:06 1996 Theodore Ts'o + + * utl_nohash_validate.c: + * util_canonhost.c: + * util_validate.c: Only include sys/types.h if present. + + * configure.in: Add check for limits.h and sys/types.h + Fri Aug 2 13:37:10 1996 Ezra Peisach * gssapiP_generic.h: If not on a Mac or under Dos, and stdlib.h diff --git a/src/lib/gssapi/generic/configure.in b/src/lib/gssapi/generic/configure.in index 5d435773e..035b05da3 100644 --- a/src/lib/gssapi/generic/configure.in +++ b/src/lib/gssapi/generic/configure.in @@ -4,7 +4,7 @@ AC_PROG_INSTALL AC_PROG_AWK V5_SHARED_LIB_OBJS SubdirLibraryRule([${OBJS}]) -AC_CHECK_HEADERS(stdlib.h) +AC_CHECK_HEADERS(stdlib.h sys/types.h limits.h) AC_SIZE_T AC_CHECK_SIZEOF(short) AC_CHECK_SIZEOF(int) diff --git a/src/lib/gssapi/generic/util_canonhost.c b/src/lib/gssapi/generic/util_canonhost.c index 900834f40..829311db9 100644 --- a/src/lib/gssapi/generic/util_canonhost.c +++ b/src/lib/gssapi/generic/util_canonhost.c @@ -30,7 +30,7 @@ #include "port-sockets.h" -#ifndef _MACINTOSH +#ifdef HAVE_SYS_TYPES_H #include #endif #include diff --git a/src/lib/gssapi/generic/util_validate.c b/src/lib/gssapi/generic/util_validate.c index 179968056..3cb34fb97 100644 --- a/src/lib/gssapi/generic/util_validate.c +++ b/src/lib/gssapi/generic/util_validate.c @@ -30,7 +30,9 @@ #include "gssapiP_generic.h" +#ifdef HAVE_SYS_TYPES_H #include +#endif #include #include #ifdef HAVE_BSD_DB diff --git a/src/lib/gssapi/generic/utl_nohash_validate.c b/src/lib/gssapi/generic/utl_nohash_validate.c index 4cd94cafd..ecd2c1354 100644 --- a/src/lib/gssapi/generic/utl_nohash_validate.c +++ b/src/lib/gssapi/generic/utl_nohash_validate.c @@ -26,8 +26,10 @@ #include "gssapiP_generic.h" -#ifndef _MACINTOSH +#ifdef HAVE_SYS_TYPES_H #include +#endif +#ifdef HAVE_LIMITS_H #include #endif -- 2.26.2