From: Ezra Peisach Date: Tue, 9 May 1995 14:40:09 +0000 (+0000) Subject: configure.in: Check for stdlib.h X-Git-Tag: krb5-1.0-beta6~2031 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a9fa25b9e1a499f2731354d21a8add97de14bb74;p=krb5.git configure.in: Check for stdlib.h poplib.c: Include . Include if present or define malloc(). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5766 dc483132-0cff-0310-8789-dd5450dbe970 --- 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 + + * configure.in: Check for stdlib.h + + * poplib.c: Include . Include 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 #include #include +#include #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 +#else +extern char *malloc(); +#endif + #include "pop.h" void *xmalloc();