Bruno Haible <[EMAIL PROTECTED]> writes: > Simon Josefsson wrote: >> I'd admit that these winsock2.h tests are a bit ugly, but I don't see >> a good alternative. Ideas? > > I don't see a better alternative. The problem is that the replacement > <sys/socket.h> is not available at the moment the autoconf test is run. > We cannot change that easily.
The only idea I've had is to force MinGW porters to put some files in a special directory, like a sys/socket.h that includes winsock2.h. But that would go against the idea of testing for features instead of treating some platforms different. For now I think we should modify every M4 code to take mingw into consideration. This approach seems possible without too much changes: GnuTLS is close to working without modifications under mingw now. Ok to install the patch? You're mentioned as the origin of the file. /Simon