diff options
author | Ezra Peisach <epeisach@mit.edu> | 1995-06-28 17:51:17 +0000 |
---|---|---|
committer | Ezra Peisach <epeisach@mit.edu> | 1995-06-28 17:51:17 +0000 |
commit | f33c01c4c2c38f1c3ec1e1418ea6e158a6b50b16 (patch) | |
tree | f22469a4059a87bf0531391bbd65b07998e8557b /src/appl/simple | |
parent | cc53112c392253ae257f51eab9721704a6160f6a (diff) | |
download | krb5-f33c01c4c2c38f1c3ec1e1418ea6e158a6b50b16.zip krb5-f33c01c4c2c38f1c3ec1e1418ea6e158a6b50b16.tar.gz krb5-f33c01c4c2c38f1c3ec1e1418ea6e158a6b50b16.tar.bz2 |
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
Diffstat (limited to 'src/appl/simple')
-rw-r--r-- | src/appl/simple/client/ChangeLog | 6 | ||||
-rw-r--r-- | src/appl/simple/client/configure.in | 1 | ||||
-rw-r--r-- | src/appl/simple/client/sim_client.c | 7 |
3 files changed, 14 insertions, 0 deletions
diff --git a/src/appl/simple/client/ChangeLog b/src/appl/simple/client/ChangeLog index 79b2c11..c07b9e9 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 <epeisach@kangaroo.mit.edu> + + * 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<lib> form, and diff --git a/src/appl/simple/client/configure.in b/src/appl/simple/client/configure.in index 84cdeda..ce69ddf 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 a39013f..3a15d83 100644 --- a/src/appl/simple/client/sim_client.c +++ b/src/appl/simple/client/sim_client.c @@ -30,6 +30,7 @@ #include <netinet/in.h> #include <netdb.h> #include <stdio.h> +#include <string.h> #include <ctype.h> #include <krb5.h> @@ -37,6 +38,12 @@ #include "simple.h" +#ifdef HAVE_STDLIB_H +#include <stdlib.h> +#else +extern char *malloc(); +#endif + /* for old Unixes and friends ... */ #ifndef MAXHOSTNAMELEN #define MAXHOSTNAMELEN 64 |