diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1997-04-07 16:06:28 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1997-04-07 16:06:28 +0000 |
commit | 03ed32f8514bb9a1fd4a5e6725ad4659947b3721 (patch) | |
tree | 247bfbeb63f33d73963ed83e2bb88e80aebdf624 /report.c | |
parent | cc7773d1d114ba7b8846a8c9c508f89cb6012700 (diff) | |
download | fetchmail-03ed32f8514bb9a1fd4a5e6725ad4659947b3721.tar.gz fetchmail-03ed32f8514bb9a1fd4a5e6725ad4659947b3721.tar.bz2 fetchmail-03ed32f8514bb9a1fd4a5e6725ad4659947b3721.zip |
Good portability hack.
svn path=/trunk/; revision=955
Diffstat (limited to 'report.c')
-rw-r--r-- | report.c | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -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); |