Hi,

For years, it has been the default on Cygwin not to include winsock.h
from windows.h, unless __USE_W32_SOCKETS is defined.  The below patch
carries that over to Mingw64's windows.h.  Ok to apply?


Thanks,
Corinna

        
        * windows.h: DOn't include winsock.h on Cygwin, unless __USE_W32_SOCKETS
        is defined.


Index: windows.h
===================================================================
--- windows.h   (revision 5167)
+++ windows.h   (working copy)
@@ -88,7 +88,9 @@
 #include <rpc.h>
 #include <shellapi.h>
 #include <winperf.h>
+#if defined(__USE_W32_SOCKETS) || !defined(__CYGWIN__)
 #include <winsock.h>
+#endif
 #ifndef NOCRYPT
 #include <wincrypt.h>
 #include <winefs.h>

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to