summaryrefslogtreecommitdiffstats
path: root/sys/ia64/include
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2003-11-03 05:04:09 +0000
committermarcel <marcel@FreeBSD.org>2003-11-03 05:04:09 +0000
commit4c4077d63b17e46162757ecc201b0211e0f81bfa (patch)
tree8e45e0fd4a44392378adc8873b0723f0e5fe5ec4 /sys/ia64/include
parentdb583b56578fac90b67c3c67d791f43fe8bf2958 (diff)
downloadFreeBSD-src-4c4077d63b17e46162757ecc201b0211e0f81bfa.zip
FreeBSD-src-4c4077d63b17e46162757ecc201b0211e0f81bfa.tar.gz
Add a bogus definition of __va_list for use by lint. Make it visible
only when lint is defined to protect builds with non-GNU compilers.
Diffstat (limited to 'sys/ia64/include')
-rw-r--r--sys/ia64/include/_types.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/ia64/include/_types.h b/sys/ia64/include/_types.h
index 0c10cde..9c15ef6 100644
--- a/sys/ia64/include/_types.h
+++ b/sys/ia64/include/_types.h
@@ -100,10 +100,14 @@ typedef __uint64_t __vm_size_t;
typedef __builtin_va_list __va_list; /* internally known to gcc */
#if !defined(__GNUC_VA_LIST) && !defined(__NO_GNUC_VA_LIST)
#define __GNUC_VA_LIST
-typedef __va_list __gnuc_va_list; /* compatibility w/GNU headers*/
+typedef __va_list __gnuc_va_list; /* compat. with GNU headers */
#endif
#else
+#ifdef lint
+typedef char * __va_list; /* non-functional */
+#else
#error Must add va_list support for this non-GCC compiler.
+#endif /* lint */
#endif /* __GNUC__ */
#endif /* !_MACHINE__TYPES_H_ */
OpenPOWER on IntegriCloud