summaryrefslogtreecommitdiff
path: root/sys/arch/hppa64/include/varargs.h
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2005-04-01 10:40:50 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2005-04-01 10:40:50 +0000
commit086e003dd29b7c42921a44eb7af336bacfc10d4d (patch)
treea901551a395f9d10ee4d44cef80ec86a4dd5ae0c /sys/arch/hppa64/include/varargs.h
parent4082d6812410636300be23e2010448febcf6e5d9 (diff)
small batch early bottling hppa64 port
matured in mighty ukrainian oak for 23 months
Diffstat (limited to 'sys/arch/hppa64/include/varargs.h')
-rw-r--r--sys/arch/hppa64/include/varargs.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/sys/arch/hppa64/include/varargs.h b/sys/arch/hppa64/include/varargs.h
new file mode 100644
index 00000000000..f0ddb6d4709
--- /dev/null
+++ b/sys/arch/hppa64/include/varargs.h
@@ -0,0 +1,17 @@
+/* $OpenBSD: varargs.h,v 1.1 2005/04/01 10:40:48 mickey Exp $ */
+
+#ifndef _MACHINE_VARARGS_H_
+#define _MACHINE_VARARGS_H_
+
+#include <machine/stdarg.h>
+
+#define __va_ellipsis ...
+
+#define va_alist __builtin_va_alist
+#define va_dcl long __builtin_va_alist; __va_ellipsis
+
+#undef va_start
+#define va_start(ap) \
+ ((ap) = (va_list)&__builtin_va_alist)
+
+#endif /* !_MACHINE_VARARGS_H */