From 06ff546e80061715919de4c221ac4a94b95b77fa Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Wed, 10 May 1995 20:44:09 +0000 Subject: [PATCH] Include stdlib.h or declare malloc() git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5791 dc483132-0cff-0310-8789-dd5450dbe970 --- src/appl/sample/sclient/ChangeLog | 5 +++++ src/appl/sample/sclient/sclient.c | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/src/appl/sample/sclient/ChangeLog b/src/appl/sample/sclient/ChangeLog index 6ecf82b74..526ca6399 100644 --- a/src/appl/sample/sclient/ChangeLog +++ b/src/appl/sample/sclient/ChangeLog @@ -1,3 +1,8 @@ +Wed May 10 15:13:09 1995 Ezra Peisach (epeisach@kangaroo.mit.edu) + + * sclient.c: Include if present on system. Else define + malloc. + Fri Mar 24 23:49:22 1995 Theodore Y. Ts'o * sclient.c (main): Initialize auth_context to NULL before calling diff --git a/src/appl/sample/sclient/sclient.c b/src/appl/sample/sclient/sclient.c index 1b5e87aec..01151f81f 100644 --- a/src/appl/sample/sclient/sclient.c +++ b/src/appl/sample/sclient/sclient.c @@ -30,6 +30,7 @@ #include "com_err.h" #include +#include #include #include @@ -38,6 +39,12 @@ #include #include +#ifdef HAVE_STDLIB_H +#include +#else +extern char *malloc(); +#endif + #include "../sample.h" void -- 2.26.2