]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix warning on CYGWIN for sockets
authorRyan Norton <wxprojects@comcast.net>
Tue, 12 Apr 2005 17:18:13 +0000 (17:18 +0000)
committerRyan Norton <wxprojects@comcast.net>
Tue, 12 Apr 2005 17:18:13 +0000 (17:18 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33552 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/gsocket.cpp
src/msw/utils.cpp

index fbe81c4a01a5c512d83af7f1f054e7d0c70af71d..83fb30a935b8098a765607ff3510000d2b61c782 100644 (file)
 
 #endif /* _MSC_VER */
 
+#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
+
 #include <winsock.h>
 
 #ifndef __GSOCKET_STANDALONE__
index ef6d79c1508343d32bf9cb1d1942ccb4b8123715..5e295b5a8e63cee6c3d6e4b6fd7ec422baf77381 100644 (file)
 #include "wx/msw/private.h"     // includes <windows.h>
 #include "wx/msw/missing.h"     // CHARSET_HANGUL
 
+#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
+
 // Doesn't work with Cygwin at present
 #if wxUSE_SOCKETS && (defined(__GNUWIN32_OLD__) || defined(__WXWINCE__) || defined(__CYGWIN32__))
     // apparently we need to include winsock.h to get WSADATA and other stuff