From f8086ce091549315cd470bcea8c56fa4ee438f1b Mon Sep 17 00:00:00 2001 From: Marc Espie Date: Sat, 3 Jan 2004 14:08:55 +0000 Subject: put an mi wrapper around stdarg.h/varargs.h. gcc3 moved stdarg/varargs macros to built-ins, so eventually we will have one version of these files. Special adjustments for the kernel to cope: machine/stdarg.h -> sys/stdarg.h and machine/ansi.h needs to have a _BSD_VA_LIST_ for syslog* prototypes. okay millert@, drahn@, miod@. --- sys/arch/sparc64/include/ansi.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sys/arch/sparc64/include/ansi.h') diff --git a/sys/arch/sparc64/include/ansi.h b/sys/arch/sparc64/include/ansi.h index 2c7380ccb86..b77b84a94e1 100644 --- a/sys/arch/sparc64/include/ansi.h +++ b/sys/arch/sparc64/include/ansi.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ansi.h,v 1.3 2003/06/02 23:27:56 millert Exp $ */ +/* $OpenBSD: ansi.h,v 1.4 2004/01/03 14:08:53 espie Exp $ */ /* $NetBSD: ansi.h,v 1.7 2001/01/03 10:09:04 takemura Exp $ */ /*- @@ -51,7 +51,11 @@ #define _BSD_SIZE_T_ unsigned long /* sizeof() */ #define _BSD_SSIZE_T_ long /* byte count or error */ #define _BSD_TIME_T_ int /* time() */ +#if defined(__GNUC__) && __GNUC__ >= 3 +#define _BSD_VA_LIST_ __builtin_va_list +#else #define _BSD_VA_LIST_ char * /* va_list */ +#endif #define _BSD_CLOCKID_T_ int /* clockid_t */ #define _BSD_TIMER_T_ int /* timer_t */ -- cgit v1.2.3