From 16af73d5f204dc1381cd535b0e8c49d9b719f57d Mon Sep 17 00:00:00 2001 From: Keith Bostic Date: Fri, 21 Feb 1992 22:40:17 -0800 Subject: [PATCH] vsyslog prototype can't use va_list SCCS-vsn: sys/sys/syslog.h 7.21 --- usr/src/sys/sys/syslog.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/usr/src/sys/sys/syslog.h b/usr/src/sys/sys/syslog.h index fb40d8cc91..4d133480ae 100644 --- a/usr/src/sys/sys/syslog.h +++ b/usr/src/sys/sys/syslog.h @@ -4,7 +4,7 @@ * * %sccs.include.redist.c% * - * @(#)syslog.h 7.20 (Berkeley) %G% + * @(#)syslog.h 7.21 (Berkeley) %G% */ #define _PATH_LOG "/dev/log" @@ -138,15 +138,22 @@ CODE facilitynames[] = { #ifndef KERNEL +/* + * Don't use va_list in the vsyslog() prototype. Va_list is typedef'd in two + * places ( and ), so if we include one + * of them here we may collide with the utility's includes. It's unreasonable + * for utilities to have to include one of them to include syslog.h, so we get + * _VA_LIST_ from and use it. + */ +#include #include -#include __BEGIN_DECLS void closelog __P((void)); void openlog __P((const char *, int, int)); int setlogmask __P((int)); void syslog __P((int, const char *, ...)); -void vsyslog __P((int, const char *, va_list)); +void vsyslog __P((int, const char *, _VA_LIST_)); __END_DECLS #endif /* !KERNEL */ -- 2.20.1