From 4bd2e62191fcde3290246c3466ab4d7055f51f54 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Fri, 14 Dec 2007 13:09:26 +0000 Subject: [PATCH] STABLE14-emulate-vsyslog-20071214 LICENSE IPL10 Do not include vsyslog on Windows. Include syslog.h for the syslog() prototype. (cherry picked from commit 059031b3c6ff61340daad288deb378dc48cbd43a) --- src/util/snprintf.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/util/snprintf.c b/src/util/snprintf.c index 4880dcf5f..8236e653b 100644 --- a/src/util/snprintf.c +++ b/src/util/snprintf.c @@ -14,6 +14,9 @@ RCSID #ifndef AFS_NT40_ENV #include #include +#ifndef HAVE_VSYSLOG +#include +#endif #else #include #endif @@ -520,6 +523,7 @@ vsnprintf(char *p, unsigned int avail, char *fmt, va_list ap) } #endif /* AFS_OSF20_ENV || AFS_AIX32_ENV */ +#ifndef AFS_NT40_ENV #ifndef HAVE_VSYSLOG void vsyslog(int priority, const char *format, va_list args) @@ -530,7 +534,6 @@ vsyslog(int priority, const char *format, va_list args) } #endif -#ifndef AFS_NT40_ENV #if defined(AFS_OSF20_ENV) && !defined(AFS_DUX50_ENV) || defined(AFS_AIX32_ENV) || (defined(AFS_SUN55_ENV) && !defined(AFS_SUN56_ENV)) || !defined(HAVE_SNPRINTF) #ifdef AFS_AIX51_ENV -- 2.39.5