aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-04-07 16:06:28 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-04-07 16:06:28 +0000
commit03ed32f8514bb9a1fd4a5e6725ad4659947b3721 (patch)
tree247bfbeb63f33d73963ed83e2bb88e80aebdf624
parentcc7773d1d114ba7b8846a8c9c508f89cb6012700 (diff)
downloadfetchmail-03ed32f8514bb9a1fd4a5e6725ad4659947b3721.tar.gz
fetchmail-03ed32f8514bb9a1fd4a5e6725ad4659947b3721.tar.bz2
fetchmail-03ed32f8514bb9a1fd4a5e6725ad4659947b3721.zip
Good portability hack.
svn path=/trunk/; revision=955
-rw-r--r--report.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/report.c b/report.c
index 7db42edc..239beaf1 100644
--- a/report.c
+++ b/report.c
@@ -117,19 +117,26 @@ private_strerror (errnum)
Exit with status STATUS if it is nonzero. */
/* VARARGS */
-#if !defined(HAVE_VSYSLOG) && !defined(VA_START)
+#if !defined(HAVE_VSYSLOG)
+#if defined(VA_START) && __STDC__
+int vsyslog(int priority, char *message, ...)
+#else
int vsyslog(priority, message, va_alist)
int priority;
char *message;
va_dcl
+#endif
{
+#ifdef VA_START
va_list args;
+#endif
char *string;
string = (char *)malloc(LINELEN);
- va_start(args);
+ VA_START (ap, fmt) ;
+
vsprintf(string, message, args);
va_end(args);