From 5b9b99fb0ae4b938371622bcc3c01e30d4bb35b9 Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Fri, 2 Aug 1996 17:39:48 +0000 Subject: [PATCH] * gssapiP_generic.h: If not on a Mac or under Dos, and stdlib.h exists, include it. * configure.in: Check for stdlib.h This cleans up many warnings on the Alpha as malloc is not previously declared. In Beta-6, gssapiP_generic.h always included k5-int.h (which included stdlib.h). Now, only the DOS and Mac platforms include k5-int.h so we need to include stdlib.h if present. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8895 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/gssapi/generic/ChangeLog | 7 +++++++ src/lib/gssapi/generic/configure.in | 1 + src/lib/gssapi/generic/gssapiP_generic.h | 5 +++++ 3 files changed, 13 insertions(+) diff --git a/src/lib/gssapi/generic/ChangeLog b/src/lib/gssapi/generic/ChangeLog index 1c0dd47cb..9d1e086b1 100644 --- a/src/lib/gssapi/generic/ChangeLog +++ b/src/lib/gssapi/generic/ChangeLog @@ -1,3 +1,10 @@ +Fri Aug 2 13:37:10 1996 Ezra Peisach + + * gssapiP_generic.h: If not on a Mac or under Dos, and stdlib.h + exists, include it. + + * configure.in: Check for stdlib.h + Thu Jul 25 00:03:01 1996 Theodore Y. Ts'o * util_ordering.c (g_order_check): diff --git a/src/lib/gssapi/generic/configure.in b/src/lib/gssapi/generic/configure.in index c535fb40b..5d435773e 100644 --- a/src/lib/gssapi/generic/configure.in +++ b/src/lib/gssapi/generic/configure.in @@ -4,6 +4,7 @@ AC_PROG_INSTALL AC_PROG_AWK V5_SHARED_LIB_OBJS SubdirLibraryRule([${OBJS}]) +AC_CHECK_HEADERS(stdlib.h) AC_SIZE_T AC_CHECK_SIZEOF(short) AC_CHECK_SIZEOF(int) diff --git a/src/lib/gssapi/generic/gssapiP_generic.h b/src/lib/gssapi/generic/gssapiP_generic.h index 63bde2024..d6866696c 100644 --- a/src/lib/gssapi/generic/gssapiP_generic.h +++ b/src/lib/gssapi/generic/gssapiP_generic.h @@ -29,7 +29,12 @@ #if (defined(_MSDOS) || defined(_WIN32) || defined(_MACINTOSH)) #include +#else +#ifdef HAVE_STDLIB_H +#include #endif +#endif + #include "gssapi_generic.h" #include "gssapi_err_generic.h" -- 2.26.2