From b0bc015ea91b09e0aa523c9b661ef5e8c6913fea Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Tue, 20 Jun 1995 19:04:30 +0000 Subject: [PATCH] * movemail.c: USE_STRING_H -> HAVE_STRING_H; fix HAVE_STLIB_H to dtrt. * configure.in: added missing tests for string.h and stdlib.h git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6099 dc483132-0cff-0310-8789-dd5450dbe970 --- src/appl/movemail/ChangeLog | 5 +++++ src/appl/movemail/configure.in | 2 +- src/appl/movemail/movemail.c | 13 +++---------- 3 files changed, 9 insertions(+), 11 deletions(-) diff --git a/src/appl/movemail/ChangeLog b/src/appl/movemail/ChangeLog index 9e46edd6c..bbf68952f 100644 --- a/src/appl/movemail/ChangeLog +++ b/src/appl/movemail/ChangeLog @@ -1,3 +1,8 @@ +Tue Jun 20 13:09:51 1995 Tom Yu (tlyu@dragons-lair) + + * movemail.c: USE_STRING_H -> HAVE_STRING_H; fix HAVE_STLIB_H to + dtrt. + * configure.in: added missing tests for string.h and stdlib.h Thu Jun 15 17:37:08 EDT 1995 Paul Park (pjpark@mit.edu) * Makefile.in - Change explicit library names to -l form, and diff --git a/src/appl/movemail/configure.in b/src/appl/movemail/configure.in index fd1fcce35..f6e246920 100644 --- a/src/appl/movemail/configure.in +++ b/src/appl/movemail/configure.in @@ -2,6 +2,6 @@ AC_INIT(movemail.c) CONFIG_RULES AC_PROG_INSTALL CHECK_FCNTL -AC_HAVE_HEADERS(unistd.h) +AC_HAVE_HEADERS(stdlib.h string.h unistd.h) V5_USE_SHARED_LIB V5_AC_OUTPUT_MAKEFILE diff --git a/src/appl/movemail/movemail.c b/src/appl/movemail/movemail.c index 7fa8bd0f7..ef69e0700 100644 --- a/src/appl/movemail/movemail.c +++ b/src/appl/movemail/movemail.c @@ -84,22 +84,15 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #include #endif -#ifdef HAS_STDLIB_H +#ifdef HAVE_STDLIB_H #include #else -#ifdef __STDC__ -#ifdef NO_STDLIB_H -#include -#else -#include -#endif /* NO_STDLIB_H */ #else extern char *malloc(), *realloc(), *calloc(); extern char *getenv(); -#endif /* ! __STDC__ */ -#endif /* HAS_STDLIB_H */ +#endif /* HAVE_STDLIB_H */ -#ifdef USE_STRING_H +#ifdef HAVE_STRING_H #include #else #include -- 2.26.2