I've now noticed that this solution fails under Sun's CC, because
va_list never gets defined.  Since this is needed only under gcc (to
prevent a clash between Sun's and gcc's va_list), I've conditionalized
the define under #ifdef __GNUC__.  I've tested the result on Solaris
8, and it seems to build on all compilers, without warnings.

This patch applies on top of the previous one:

2002-04-12  Hrvoje Niksic  <[EMAIL PROTECTED]>

        * config.h.in: Only define _VA_LIST when compiled with gcc.

Index: src/config.h.in
===================================================================
RCS file: /pack/anoncvs/wget/src/config.h.in,v
retrieving revision 1.22
diff -u -r1.22 config.h.in
--- src/config.h.in     2002/04/12 18:36:07     1.22
+++ src/config.h.in     2002/04/12 20:25:06
@@ -257,8 +257,11 @@
 
 #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__

Reply via email to