]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/gsocket.h
Applied patch [ 619705 ] Fixes wxApp::GetComCtl32Version
[wxWidgets.git] / include / wx / gsocket.h
index 85c5cedd8098c35d966c02b51a13e97b558ae12e..54db19bc4eae2a0826c71eb2a1f6b21abec583e8 100644 (file)
 #if wxUSE_SOCKETS || defined(__GSOCKET_STANDALONE__)
 
 #include <stddef.h>
-#ifndef __WXMAC__
+
+/*
+   Including sys/types.h under cygwin results in the warnings about "fd_set
+   having been defined in sys/types.h" when winsock.h is included later and
+   doesn't seem to be necessary anyhow. It's not needed under Mac neither.
+ */
+#if !defined(__WXMAC__) && !defined(__CYGWIN__)
 #include <sys/types.h>
 #endif