Re: ws2tcpip.h include bug

2010-05-02 Thread Ozkan Sezer
On Sun, May 2, 2010 at 1:14 PM, Bruno Haible wrote: > Hi, > > Ozkan Sezer wrote: >> It is mingw-w64 (http://mingw-w64.sourceforge.net/) where >> the provided ws2tcpip.h header doesn't include winsock2.h. >> The mingw32 header does include it, for convenience as it >> seems > > It is not "for conve

Re: ws2tcpip.h include bug

2010-05-02 Thread Bruno Haible
Hi, Ozkan Sezer wrote: > It is mingw-w64 (http://mingw-w64.sourceforge.net/) where > the provided ws2tcpip.h header doesn't include winsock2.h. > The mingw32 header does include it, for convenience as it > seems It is not "for convenience". It is for correctness. 20 years ago it was usual that y

Re: ws2tcpip.h include bug

2010-05-02 Thread Ozkan Sezer
On Sun, May 2, 2010 at 11:11 AM, Bruno Haible wrote: > Hi, > > Ozkan Sezer wrote: >> The config header checks for windows' ws2tcpip.h have a little bug where >> they do not include winsock2.h before ws2tcpip.h: ws2tcpip.h requires >> winsock2.h to be included before, a plain AC_CHECK_HEADERS([ws2t

Re: ws2tcpip.h include bug

2010-05-02 Thread Bruno Haible
Hi, Ozkan Sezer wrote: > The config header checks for windows' ws2tcpip.h have a little bug where > they do not include winsock2.h before ws2tcpip.h: ws2tcpip.h requires > winsock2.h to be included before, a plain AC_CHECK_HEADERS([ws2tcpip.h]) > like in current m4/sys_socket_h.m4 may fail to dete