configure.in: Check for stdlib.h
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6658
dc483132-0cff-0310-8789-
dd5450dbe970
+Mon Sep 4 14:19:03 1995 Ezra Peisach <epeisach@kangaroo.mit.edu>
+
+ * 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
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
#include <gssapi/gssapi.h>
#include <gssapi/gssapi_generic.h>
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#else
+extern char *malloc();
+#endif
+
static void display_status_1();
FILE *display_file = NULL;