summaryrefslogtreecommitdiff
path: root/sys/arch/mvme88k
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2004-01-03 14:08:55 +0000
committerMarc Espie <espie@cvs.openbsd.org>2004-01-03 14:08:55 +0000
commitf8086ce091549315cd470bcea8c56fa4ee438f1b (patch)
treed72e268347fd3adc8cb53eaf4269e281dd46ab47 /sys/arch/mvme88k
parent31ec8d6d746e8bf365990ee271f1a77c3c1e3d0a (diff)
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@.
Diffstat (limited to 'sys/arch/mvme88k')
-rw-r--r--sys/arch/mvme88k/include/ansi.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/arch/mvme88k/include/ansi.h b/sys/arch/mvme88k/include/ansi.h
index 809c570acf5..2dc85b42359 100644
--- a/sys/arch/mvme88k/include/ansi.h
+++ b/sys/arch/mvme88k/include/ansi.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ansi.h,v 1.16 2003/10/11 22:08:57 miod Exp $ */
+/* $OpenBSD: ansi.h,v 1.17 2004/01/03 14:08:53 espie Exp $ */
/*-
* Copyright (c) 1990, 1993
* The Regents of the University of California. All rights reserved.
@@ -48,7 +48,11 @@
#define _BSD_SSIZE_T_ int /* byte count or error */
#define _BSD_TIME_T_ int /* time() */
struct __va_list_tag;
-#define _BSD_VA_LIST_ struct __va_list_tag * /* va_list */
+#if defined(__GNUC__) && __GNUC__ >= 3
+#define _BSD_VA_LIST_ __builtin_va_list
+#else
+#define _BSD_VA_LIST_ struct __va_list_tag * /* va_list */
+#endif
#define _BSD_CLOCKID_T_ int
#define _BSD_TIMER_T_ int