[Privoxy-devel] fix ./configure warning?
Lee
ler762 at gmail.com
Fri Jul 22 10:17:27 UTC 2016
The cygwin cross-compiler for windows fusses about
#warning Please include winsock2.h before windows.h
I'd rather not have the warning, but it _is_ a warning & who looks at
config.log anyway?
So.. apply to configure.in or no?
@@ -811,10 +824,13 @@
AC_CHECK_LIB(ws2_32, main)
AC_MSG_CHECKING(getaddrinfo in ws2_32)
AC_TRY_LINK(
[
+ #include<winsock2.h>
+dnl # i686-w64-mingw32-gcc complains about
+dnl # warning Please include winsock2.h before windows.h [-Wcpp]
#include<windows.h>
#include<ws2tcpip.h>
],
[getaddrinfo(0,0,0,0)],
have_ws2_32_getaddrinfo=yes
the configure test still works, but now you get a warning msg:
configure:6012: checking getaddrinfo in ws2_32
configure:6028: i686-w64-mingw32-gcc -o conftest.exe -pipe -O2
-DWINVER=0x501 -mwindows conftest.c -lws2_32 1>&5
In file included from
/usr/i686-w64-mingw32/sys-root/mingw/include/ws2tcpip.h:17:0,
from conftest.c:63:
/usr/i686-w64-mingw32/sys-root/mingw/include/winsock2.h:15:2: warning:
#warning Please include winsock2.h before windows.h [-Wcpp]
#warning Please include winsock2.h before windows.h
^
configure:6028: $? = 0
configure:6034: result: yes
Lee
More information about the Privoxy-devel
mailing list