2011/9/6 Dan Kegel dank@kegel.com:
Hi André, your patch failed to build on an ubuntu 10.04 system here:
ccache gcc -c -I. -I. -I../../../include -I../../../include -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wstrict-prototypes -Wtype-limits -Wwrite-strings -Wpointer-arith -Wlogical-op -g -O0 -Werror -o name.o name.c In file included from ns_parse.c:39: ../../include/winbase.h:1583: error: expected declaration specifiers or ‘...’ before ‘va_list’ ../../include/winbase.h:1584: error: expected declaration specifiers or ‘...’ before ‘va_list’ make[1]: *** [ns_parse.o] Error 1
Inserting #include <stdarg.h> before including winbase.h makes the compiler happy.
- Dan
The same on Alpine Linux (where the patch was meant to help).
After including stdarg.h, the original failure goes away.