From f33c01c4c2c38f1c3ec1e1418ea6e158a6b50b16 Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Wed, 28 Jun 1995 17:51:17 +0000 Subject: [PATCH] sim_client.c: Include stdlib.h or declare malloc. Include string.h for strlen and memcpy definitions configure.in: Check for stdlib.h. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6185 dc483132-0cff-0310-8789-dd5450dbe970 --- src/appl/simple/client/ChangeLog | 6 ++++++ src/appl/simple/client/configure.in | 1 + src/appl/simple/client/sim_client.c | 7 +++++++ 3 files changed, 14 insertions(+) diff --git a/src/appl/simple/client/ChangeLog b/src/appl/simple/client/ChangeLog index 79b2c11f6..c07b9e9f8 100644 --- a/src/appl/simple/client/ChangeLog +++ b/src/appl/simple/client/ChangeLog @@ -1,3 +1,9 @@ +Wed Jun 28 13:27:17 1995 Ezra Peisach + + * sim_client.c: Include stdlib.h or declare malloc. + Include string.h for strlen and memcpy defintions. + + * configure.in: Check for stdlib.h. Thu Jun 15 17:39:54 EDT 1995 Paul Park (pjpark@mit.edu) * Makefile.in - Change explicit library names to -l form, and diff --git a/src/appl/simple/client/configure.in b/src/appl/simple/client/configure.in index 84cdeda39..ce69ddf9b 100644 --- a/src/appl/simple/client/configure.in +++ b/src/appl/simple/client/configure.in @@ -1,5 +1,6 @@ AC_INIT(sim_client.c) CONFIG_RULES AC_PROG_INSTALL +AC_CHECK_HEADERS(stdlib.h) V5_USE_SHARED_LIB V5_AC_OUTPUT_MAKEFILE diff --git a/src/appl/simple/client/sim_client.c b/src/appl/simple/client/sim_client.c index a39013f2d..3a15d833d 100644 --- a/src/appl/simple/client/sim_client.c +++ b/src/appl/simple/client/sim_client.c @@ -30,6 +30,7 @@ #include #include #include +#include #include #include @@ -37,6 +38,12 @@ #include "simple.h" +#ifdef HAVE_STDLIB_H +#include +#else +extern char *malloc(); +#endif + /* for old Unixes and friends ... */ #ifndef MAXHOSTNAMELEN #define MAXHOSTNAMELEN 64 -- 2.26.2