http://bugs.winehq.org/show_bug.cgi?id=20474
--- Comment #8 from Yann Droneaud yann@droneaud.fr 2009-10-26 10:17:16 --- In C99, not all POSIX, XOPEN features are available by default. Sources file should use some defined. For example
#define _ISOC99_SOURCE
#define _POSIX_SOURCE #define _POSIX_C_SOURCE 200112L
#define _XOPEN_SOURCE 600 #define _XOPEN_SOURCE_EXTENDED
BTW, this could be added to CPPFLAG or in config.h