From a02b50502f77e4507f9ebb2c9b990cd7a072efad Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Mon, 4 Sep 1995 18:25:54 +0000 Subject: [PATCH] gss-misc.c: Either include stdlib.h or declare malloc configure.in: Check for stdlib.h git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6658 dc483132-0cff-0310-8789-dd5450dbe970 --- src/appl/gss-sample/ChangeLog | 5 +++++ src/appl/gss-sample/configure.in | 4 ++-- src/appl/gss-sample/gss-misc.c | 6 ++++++ 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/appl/gss-sample/ChangeLog b/src/appl/gss-sample/ChangeLog index 70883df13..49dc9feb8 100644 --- a/src/appl/gss-sample/ChangeLog +++ b/src/appl/gss-sample/ChangeLog @@ -1,3 +1,8 @@ +Mon Sep 4 14:19:03 1995 Ezra Peisach + + * gss-misc.c: Either include stdlib.h or declare malloc. + + * configure.in: Check for stdlib.h Thu Aug 31 11:35:07 EDT 1995 Paul Park (pjpark@mit.edu) * Makefile.in - Add -DUSE_AUTOCONF_H and -DGSSAPI_V2 to enable usage diff --git a/src/appl/gss-sample/configure.in b/src/appl/gss-sample/configure.in index 5987e3afd..932eefe32 100644 --- a/src/appl/gss-sample/configure.in +++ b/src/appl/gss-sample/configure.in @@ -1,7 +1,7 @@ AC_INIT(gss-client.c) CONFIG_RULES -AC_HAVE_HEADERS(unistd.h) -AC_HEADER_CHECK(string.h,AC_DEFINE(USE_STRING_H)) +AC_CHECK_HEADERS(unistd.h stdlib.h) +AC_CHECK_HEADER(string.h,AC_DEFINE(USE_STRING_H)) AC_CONST AC_PROG_INSTALL KRB5_LIBRARIES diff --git a/src/appl/gss-sample/gss-misc.c b/src/appl/gss-sample/gss-misc.c index 442d4566d..4ad6824ca 100644 --- a/src/appl/gss-sample/gss-misc.c +++ b/src/appl/gss-sample/gss-misc.c @@ -30,6 +30,12 @@ #include #include +#ifdef HAVE_STDLIB_H +#include +#else +extern char *malloc(); +#endif + static void display_status_1(); FILE *display_file = NULL; -- 2.26.2