https://bugs.winehq.org/show_bug.cgi?id=40865
--- Comment #9 from Bruno Jesus 00cpxxx@gmail.com --- Ok, everyone. I need help, even better, I need you to fix this bug if possible.
I looked into configure.ac but there is no precedent to this case as far as my limited knowledge goes. I tried to find a way to add -Werror to the compilation but failed, this should take 5 seconds for anyone used to change this file.
The check for gethostbyname_r is at line 2200, the test succeeds BUT must not (as the function is not declared in netdb.h), as the #define name implies HAVE_LINUX_GETHOSTBYNAME_R_6 must be LINUX only.
What about putting a #ifdef __linux__ in the test source?