From: Ezra Peisach Date: Tue, 23 Jan 1996 18:25:05 +0000 (+0000) Subject: Check for stdlib.h (configure.in) X-Git-Tag: krb5-1.0-beta6~579 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=326e5c6df077c84734a68999fb210191f11f8997;p=krb5.git Check for stdlib.h (configure.in) Include stdlib.h and string.h for declarations of such items like malloc, strlen, memmove... git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7370 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/gssapi/mechglue/ChangeLog b/src/lib/gssapi/mechglue/ChangeLog index 11e8bfa1b..d082892f9 100644 --- a/src/lib/gssapi/mechglue/ChangeLog +++ b/src/lib/gssapi/mechglue/ChangeLog @@ -1,5 +1,11 @@ Tue Jan 23 11:52:24 1996 Ezra Peisach + * add_mechanism.c, g_inquire_cred.c, g_imp_name.c, + g_dsp_name.c, g_indicate_mechs.c, g_accept_sec_context.c, + g_init_sec_context.c, g_acquire_cred.c: Include stdlib.h, string.h + + * configure.in: Check for stdlib.h + * Makefile.in (SRCS): Remove extraneous line with only a tab. (SHLIB_LDFLAGS): Declare that krb5_gss_initialize is to be unresolved. diff --git a/src/lib/gssapi/mechglue/add_mechanism.c b/src/lib/gssapi/mechglue/add_mechanism.c index 398f0503f..843dd19f6 100644 --- a/src/lib/gssapi/mechglue/add_mechanism.c +++ b/src/lib/gssapi/mechglue/add_mechanism.c @@ -7,6 +7,10 @@ */ #include "mglueP.h" +#ifdef HAVE_STDLIB_H +#include +#endif +#include #include static struct gss_config null_mech = { diff --git a/src/lib/gssapi/mechglue/configure.in b/src/lib/gssapi/mechglue/configure.in index e691fe424..9b39041a7 100644 --- a/src/lib/gssapi/mechglue/configure.in +++ b/src/lib/gssapi/mechglue/configure.in @@ -4,6 +4,7 @@ AC_PROG_ARCHIVE AC_PROG_ARCHIVE_ADD AC_PROG_RANLIB AC_PROG_INSTALL +AC_CHECK_HEADERS(stdlib.h) V5_SHARED_LIB_OBJS SubdirLibraryRule([${OBJS}]) CopySrcHeader(mechglue.h,[$(EHDRDIR)]) diff --git a/src/lib/gssapi/mechglue/g_accept_sec_context.c b/src/lib/gssapi/mechglue/g_accept_sec_context.c index 31162d842..97693a959 100644 --- a/src/lib/gssapi/mechglue/g_accept_sec_context.c +++ b/src/lib/gssapi/mechglue/g_accept_sec_context.c @@ -7,6 +7,10 @@ */ #include "mglueP.h" +#ifdef HAVE_STDLIB_H +#include +#endif +#include OM_uint32 gss_accept_sec_context (minor_status, diff --git a/src/lib/gssapi/mechglue/g_acquire_cred.c b/src/lib/gssapi/mechglue/g_acquire_cred.c index e904c9dda..915642eba 100644 --- a/src/lib/gssapi/mechglue/g_acquire_cred.c +++ b/src/lib/gssapi/mechglue/g_acquire_cred.c @@ -7,6 +7,10 @@ */ #include "mglueP.h" +#ifdef HAVE_STDLIB_H +#include +#endif +#include OM_uint32 gss_acquire_cred(minor_status, diff --git a/src/lib/gssapi/mechglue/g_dsp_name.c b/src/lib/gssapi/mechglue/g_dsp_name.c index 0009efdce..a0fa17901 100644 --- a/src/lib/gssapi/mechglue/g_dsp_name.c +++ b/src/lib/gssapi/mechglue/g_dsp_name.c @@ -7,6 +7,10 @@ */ #include "mglueP.h" +#ifdef HAVE_STDLIB_H +#include +#endif +#include OM_uint32 gss_display_name (minor_status, diff --git a/src/lib/gssapi/mechglue/g_imp_name.c b/src/lib/gssapi/mechglue/g_imp_name.c index 4f22fe0e5..3a9053cc8 100644 --- a/src/lib/gssapi/mechglue/g_imp_name.c +++ b/src/lib/gssapi/mechglue/g_imp_name.c @@ -7,6 +7,10 @@ */ #include "mglueP.h" +#ifdef HAVE_STDLIB_H +#include +#endif +#include OM_uint32 gss_import_name(minor_status, diff --git a/src/lib/gssapi/mechglue/g_indicate_mechs.c b/src/lib/gssapi/mechglue/g_indicate_mechs.c index 3071f569a..33d4bdd6f 100644 --- a/src/lib/gssapi/mechglue/g_indicate_mechs.c +++ b/src/lib/gssapi/mechglue/g_indicate_mechs.c @@ -7,6 +7,10 @@ */ #include "mglueP.h" +#ifdef HAVE_STDLIB_H +#include +#endif +#include extern gss_mechanism *mechs_array; diff --git a/src/lib/gssapi/mechglue/g_init_sec_context.c b/src/lib/gssapi/mechglue/g_init_sec_context.c index 8899386c7..91b607382 100644 --- a/src/lib/gssapi/mechglue/g_init_sec_context.c +++ b/src/lib/gssapi/mechglue/g_init_sec_context.c @@ -7,6 +7,10 @@ */ #include "mglueP.h" +#ifdef HAVE_STDLIB_H +#include +#endif +#include OM_uint32 gss_init_sec_context (minor_status, diff --git a/src/lib/gssapi/mechglue/g_initialize.c b/src/lib/gssapi/mechglue/g_initialize.c index 5081b1a28..8325130cf 100644 --- a/src/lib/gssapi/mechglue/g_initialize.c +++ b/src/lib/gssapi/mechglue/g_initialize.c @@ -7,6 +7,11 @@ */ #include "mglueP.h" +#ifdef HAVE_STDLIB_H +#include +#endif + +extern gss_mechanism krb5_gss_initialize(); static int _gss_initialized = 0; diff --git a/src/lib/gssapi/mechglue/g_inquire_cred.c b/src/lib/gssapi/mechglue/g_inquire_cred.c index 9d1697aa0..f2931cafd 100644 --- a/src/lib/gssapi/mechglue/g_inquire_cred.c +++ b/src/lib/gssapi/mechglue/g_inquire_cred.c @@ -7,6 +7,10 @@ */ #include "mglueP.h" +#ifdef HAVE_STDLIB_H +#include +#endif +#include OM_uint32 gss_inquire_cred(minor_status,