summaryrefslogtreecommitdiffstats
path: root/sys/alpha/include/ansi.h
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/alpha/include/ansi.h
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/alpha/include/ansi.h')
-rw-r--r--sys/alpha/include/ansi.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/alpha/include/ansi.h b/sys/alpha/include/ansi.h
index eb9cfa6..0aa285b 100644
--- a/sys/alpha/include/ansi.h
+++ b/sys/alpha/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
typedef struct {
char *__base;
OpenPOWER on IntegriCloud