summaryrefslogtreecommitdiff
path: root/sys/arch/alpha/include
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/alpha/include')
-rw-r--r--sys/arch/alpha/include/stdarg.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/arch/alpha/include/stdarg.h b/sys/arch/alpha/include/stdarg.h
index 6d3b043d87c..db4c584eaa1 100644
--- a/sys/arch/alpha/include/stdarg.h
+++ b/sys/arch/alpha/include/stdarg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: stdarg.h,v 1.4 1996/10/30 22:39:30 niklas Exp $ */
+/* $OpenBSD: stdarg.h,v 1.5 2002/10/23 15:38:15 millert Exp $ */
/* $NetBSD: stdarg.h,v 1.4 1996/10/09 21:13:05 cgd Exp $ */
/*-
@@ -58,6 +58,13 @@ typedef _BSD_VA_LIST_ va_list;
(*(type *)((ap).offset += __va_size(type), \
(ap).base + (ap).offset + __va_arg_offset(ap, type)))
+#if !defined(_ANSI_SOURCE) && \
+ (!defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE) || \
+ defined(_ISOC99_SOURCE) || (__STDC_VERSION__ - 0) >= 199901L)
+#define va_copy(dest, src) \
+ ((dest) = (src))
+#endif
+
#define va_end(ap) ((void)0)
#endif /* !_ALPHA_STDARG_H_ */