#ifdef solaris
# define NAMESPACE_TWEAKS
-/* Prevent stdio.h from declaring va_list. */
-# define _VA_LIST
+# ifdef __GNUC__
+/* Prevent stdio.h from declaring va_list and thus tripping gcc's
+ stdarg.h. */
+# define _VA_LIST
+# endif
#endif
#ifdef __linux__