summaryrefslogtreecommitdiffstats
path: root/sys/sparc64
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/sparc64
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/sparc64')
-rw-r--r--sys/sparc64/include/ansi.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/sparc64/include/ansi.h b/sys/sparc64/include/ansi.h
index 47f5552..b974eb3 100644
--- a/sys/sparc64/include/ansi.h
+++ b/sys/sparc64/include/ansi.h
@@ -72,8 +72,11 @@
#define _BSD_OFF_T_ long /* file offset */
#define _BSD_PID_T_ int /* process [group] */
-#if defined __GNUC__ && (__GNUC__ > 2 || __GNUC__ == 2 && __GNUC_MINOR__ > 95)
+#if defined __GNUC__
+#if (__GNUC__ > 2 || __GNUC__ == 2 && __GNUC_MINOR__ > 95)
#define _BSD_VA_LIST_ __builtin_va_list /* internally known to gcc */
+#endif
+typedef _BSD_VA_LIST_ __gnuc_va_list; /* compatibility w/GNU headers*/
#else
#define _BSD_VA_LIST_ char * /* va_list */
#endif /*__GNUC__*/
OpenPOWER on IntegriCloud