From: Theodore Tso Date: Wed, 1 Mar 1995 23:20:08 +0000 (+0000) Subject: Add proper #ifdef's to #include the appropriate system header files X-Git-Tag: krb5-1.0-beta5~625 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=aee782e31bf9592178e6d3a2bccf8a1e780670b5;p=krb5.git Add proper #ifdef's to #include the appropriate system header files git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5045 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/appl/movemail/ChangeLog b/src/appl/movemail/ChangeLog index 98214102e..451ce5661 100644 --- a/src/appl/movemail/ChangeLog +++ b/src/appl/movemail/ChangeLog @@ -1,5 +1,8 @@ Wed Mar 1 11:56:05 1995 Theodore Y. Ts'o + * movemail.c: Add proper #ifdef's to #include the appropriate + system header files. + * configure.in: Replace check for -lsocket and -lnsl with WITH_NETLIB check. diff --git a/src/appl/movemail/movemail.c b/src/appl/movemail/movemail.c index 89d6ac2b7..ed8d97acc 100644 --- a/src/appl/movemail/movemail.c +++ b/src/appl/movemail/movemail.c @@ -83,6 +83,27 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #include #endif +#ifdef HAS_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 */ + +#ifdef USE_STRING_H +#include +#else +#include +#endif + /* Cancel substitutions made by config.h for Emacs. */ #undef open #undef read