aboutsummaryrefslogtreecommitdiffstats
path: root/report.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-10-08 16:17:20 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-10-08 16:17:20 +0000
commitc3bb716979d671c1564070806c33ea3f0d66f698 (patch)
treeffcb021f80117692633832008cd01eaa98314e1f /report.c
parent5cba49f606e29d7069ffb115ad090fdc4d07d4da (diff)
downloadfetchmail-c3bb716979d671c1564070806c33ea3f0d66f698.tar.gz
fetchmail-c3bb716979d671c1564070806c33ea3f0d66f698.tar.bz2
fetchmail-c3bb716979d671c1564070806c33ea3f0d66f698.zip
Port fixes.
svn path=/trunk/; revision=1489
Diffstat (limited to 'report.c')
-rw-r--r--report.c16
1 files changed, 10 insertions, 6 deletions
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 <alloca.h>
+#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 <stdarg.h>
# 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