poplib.c: Include <string.h>. Include <stdlib.h> if present or define malloc().
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5766
dc483132-0cff-0310-8789-
dd5450dbe970
+Tue May 9 10:29:44 1995 Ezra Peisach <epeisach@kangaroo.mit.edu>
+
+ * configure.in: Check for stdlib.h
+
+ * poplib.c: Include <string.h>. Include <stdlib.h> if present or
+ define malloc().
+
Mon Mar 27 07:56:26 1995 Chris Provenzano (proven@mit.edu)
* poplib.c (pop_init()): Use new calling convention for krb5_sendauth().
AC_SET_BUILDTOP
AC_PROG_INSTALL
WITH_NETLIB
-AC_HAVE_HEADERS(unistd.h)
+AC_HAVE_HEADERS(unistd.h stdlib.h)
WITH_KRB5ROOT
AC_FUNC_CHECK(strerror,AC_DEFINE(HAS_STRERROR))
KRB_INCLUDE
#include <netinet/in.h>
#include <netdb.h>
#include <stdio.h>
+#include <string.h>
#if defined(KRB4) && defined(KRB5)
error You cannot define both KRB4 and KRB5
#endif
#endif
#endif
+#ifdef HAS_STDLIB_H
+#include <stdlib.h>
+#else
+extern char *malloc();
+#endif
+
#include "pop.h"
void *xmalloc();