From c3bb716979d671c1564070806c33ea3f0d66f698 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 8 Oct 1997 16:17:20 +0000 Subject: Port fixes. svn path=/trunk/; revision=1489 --- NEWS | 6 ++++++ driver.c | 6 +++++- fetchmail.c | 4 ++++ report.c | 16 ++++++++++------ 4 files changed, 25 insertions(+), 7 deletions(-) diff --git a/NEWS b/NEWS index 209b60ec..037cf13c 100644 --- a/NEWS +++ b/NEWS @@ -10,6 +10,12 @@ Release Notes: +------------------------------------------------------------------------------ +fetchmail-4.3.1 () +* Minor portation fixes for early AIX version and NextSTEP. + +There are 280 people on fetchmail-friends and 8 on fetchmail-announce. + ------------------------------------------------------------------------------ fetchmail-4.3.0 (Mon Oct 6 16:44:38 EDT 1997) * Rearranged IMAP authentication so CAPABILITY is done first, diff --git a/driver.c b/driver.c index 8eb7494f..c8b76d08 100644 --- a/driver.c +++ b/driver.c @@ -27,6 +27,10 @@ #endif #if defined(HAVE_ALLOCA_H) #include +#else +#ifdef _AIX + #pragma alloca +#endif #endif #if defined(HAVE_SYS_ITIMER_H) #include @@ -870,7 +874,7 @@ int num; /* index of message */ desthost = "localhost"; length = strlen(ctl->mda) + 1; - before = strdup(ctl->mda); + before = xstrdup(ctl->mda); /* sub user addresses for %T (or %s for backward compatibility) */ cp = (char *)NULL; diff --git a/fetchmail.c b/fetchmail.c index 4c4fdd5f..73a1cb3f 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -16,6 +16,10 @@ #endif #if defined(HAVE_ALLOCA_H) #include +#else +#ifdef _AIX + #pragma alloca +#endif #endif #include #include diff --git a/report.c b/report.c index a4032782..9ad5cdf7 100644 --- a/report.c +++ b/report.c @@ -33,10 +33,14 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #endif #if defined(HAVE_ALLOCA_H) #include +#else +#ifdef _AIX + #pragma alloca +#endif #endif -#if HAVE_VPRINTF || HAVE_DOPRNT || _LIBC -# if __STDC__ +#if HAVE_VPRINTF || HAVE_DOPRNT || _LIBC || HAVE_STDARG_H +# if HAVE_STDARG_H # include # define VA_START(args, lastarg) va_start(args, lastarg) # else @@ -118,7 +122,7 @@ private_strerror (errnum) /* VARARGS */ void -#if defined(VA_START) && __STDC__ +#ifdef HAVE_STDARG_H error (int status, int errnum, const char *message, ...) #else error (status, errnum, message, va_alist) @@ -263,7 +267,7 @@ int foreground; /* VARARGS */ void -#if defined(VA_START) && __STDC__ +#ifdef HAVE_STDARG_H error_build (const char *message, ...) #else error_build (message, va_alist) @@ -363,7 +367,7 @@ error_build (message, va_alist) /* VARARGS */ void -#if defined(VA_START) && __STDC__ +#ifdef HAVE_STDARG_H error_complete (int status, int errnum, const char *message, ...) #else error_complete (status, errnum, message, va_alist) @@ -478,7 +482,7 @@ error_complete (status, errnum, message, va_alist) int error_one_per_line; void -#if defined(VA_START) && __STDC__ +#ifdef HAVE_STDARG_H error_at_line (int status, int errnum, const char *file_name, unsigned int line_number, const char *message, ...) #else -- cgit v1.2.3