]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/msw/gsockmsw.h
Fixes & Hacks to make sockets compile on CYGWIN with windows enabled
[wxWidgets.git] / include / wx / msw / gsockmsw.h
index 346a23c4c1335be8b84b483f1dcacaba493de408..60573eeda0754536113429648c6bfda016fc9b57 100644 (file)
 
 #include "wx/msw/wrapwin.h"
 
-#if defined(__WXWINCE__)
+#if defined(__CYGWIN__)
+    //CYGWIN gives annoying warning about runtime stuff if we don't do this
+#   define USE_SYS_TYPES_FD_SET
+#   include <sys/types.h>
+#endif
+
+#if defined(__WXWINCE__) || defined(__CYGWIN__)
 #include <winsock.h>
 #endif