summaryrefslogtreecommitdiffstats
path: root/sys/ia64/include
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2001-10-18 00:27:39 +0000
committerobrien <obrien@FreeBSD.org>2001-10-18 00:27:39 +0000
commit1d7ce16d9a3572244364209ace928055430d9188 (patch)
tree84383ae718384c358c7a75c64216f96bcb9d657b /sys/ia64/include
parent1ee32f686afeb4412e5ee8322eab387bf3f2ac6a (diff)
downloadFreeBSD-src-1d7ce16d9a3572244364209ace928055430d9188.zip
FreeBSD-src-1d7ce16d9a3572244364209ace928055430d9188.tar.gz
Add support for "__gnuc_va_list". Some overly "smart" libraries assume
the existence of the __gnuc_va_list type[*] because our compiler is GCC. [*] __gnuc_va_list is defined in the GCC ginclude/stdarg.h replacement headerwhich we don't use.
Diffstat (limited to 'sys/ia64/include')
-rw-r--r--sys/ia64/include/ansi.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/ia64/include/ansi.h b/sys/ia64/include/ansi.h
index 395f54e..5715b4e 100644
--- a/sys/ia64/include/ansi.h
+++ b/sys/ia64/include/ansi.h
@@ -71,7 +71,13 @@
#define _BSD_CT_RUNE_T_ int /* arg type for ctype funcs */
#define _BSD_OFF_T_ long /* file offset */
#define _BSD_PID_T_ int /* process [group] */
-#define _BSD_VA_LIST_ __builtin_va_list /* va_list */
+
+#if defined __GNUC__
+#define _BSD_VA_LIST_ __builtin_va_list /* internally known to gcc */
+typedef _BSD_VA_LIST_ __gnuc_va_list; /* compatibility w/GNU headers*/
+#else
+#error Must add va_list support for this non-GCC compiler.
+#endif /*__GNUC__*/
/*
* The rune type above is declared to be an ``int'' instead of the more natural
OpenPOWER on IntegriCloud