summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEzra Peisach <epeisach@mit.edu>1995-05-09 14:40:09 +0000
committerEzra Peisach <epeisach@mit.edu>1995-05-09 14:40:09 +0000
commita9fa25b9e1a499f2731354d21a8add97de14bb74 (patch)
treece21075b9e19df0235b556f1f5dedaeec755d587 /src
parenteb1e8026841592eb99575162e0836e5c38329245 (diff)
configure.in: Check for stdlib.h
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
Diffstat (limited to 'src')
-rw-r--r--src/appl/mailquery/ChangeLog7
-rw-r--r--src/appl/mailquery/configure.in2
-rw-r--r--src/appl/mailquery/poplib.c7
3 files changed, 15 insertions, 1 deletions
diff --git a/src/appl/mailquery/ChangeLog b/src/appl/mailquery/ChangeLog
index 8eb24f162..5989df3d6 100644
--- a/src/appl/mailquery/ChangeLog
+++ b/src/appl/mailquery/ChangeLog
@@ -1,3 +1,10 @@
+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().
diff --git a/src/appl/mailquery/configure.in b/src/appl/mailquery/configure.in
index c371893de..f9f246daf 100644
--- a/src/appl/mailquery/configure.in
+++ b/src/appl/mailquery/configure.in
@@ -4,7 +4,7 @@ CONFIG_RULES
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
diff --git a/src/appl/mailquery/poplib.c b/src/appl/mailquery/poplib.c
index e8f640d13..ac20b871a 100644
--- a/src/appl/mailquery/poplib.c
+++ b/src/appl/mailquery/poplib.c
@@ -26,6 +26,7 @@
#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
@@ -43,6 +44,12 @@ error You cannot define both KRB4 and KRB5
#endif
#endif
+#ifdef HAS_STDLIB_H
+#include <stdlib.h>
+#else
+extern char *malloc();
+#endif
+
#include "pop.h"
void *xmalloc();