sim_client.c: Include stdlib.h or declare malloc. Include string.h for
authorEzra Peisach <epeisach@mit.edu>
Wed, 28 Jun 1995 17:51:17 +0000 (17:51 +0000)
committerEzra Peisach <epeisach@mit.edu>
Wed, 28 Jun 1995 17:51:17 +0000 (17:51 +0000)
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
src/appl/simple/client/configure.in
src/appl/simple/client/sim_client.c

index 79b2c11f6ee516a2b81e761ccafacb656c0aa74a..c07b9e9f82313bd20847ded1f0ad51138a9843fb 100644 (file)
@@ -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
index 84cdeda39337ee6846d8e972be78f8574e9a0c3f..ce69ddf9b501d888bc347e2b045fcecd6991efcf 100644 (file)
@@ -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
index a39013f2db38411d9d40a03b8028702f07a0d1c3..3a15d833dce81192cbfb1490669daa1c119e5a47 100644 (file)
@@ -30,6 +30,7 @@
 #include <netinet/in.h>
 #include <netdb.h>
 #include <stdio.h>
+#include <string.h>
 #include <ctype.h>
 
 #include <krb5.h>
 
 #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