From: Ryan Norton Date: Tue, 12 Apr 2005 17:18:13 +0000 (+0000) Subject: Fix warning on CYGWIN for sockets X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/f6afe7fdf1de812bbc656a1ef832088e56412ae3?hp=df116f900b70a8096eb5cb128f895593329cde46 Fix warning on CYGWIN for sockets git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33552 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/gsocket.cpp b/src/msw/gsocket.cpp index fbe81c4a01..83fb30a935 100644 --- a/src/msw/gsocket.cpp +++ b/src/msw/gsocket.cpp @@ -43,6 +43,12 @@ #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 +#endif + #include #ifndef __GSOCKET_STANDALONE__ diff --git a/src/msw/utils.cpp b/src/msw/utils.cpp index ef6d79c150..5e295b5a8e 100644 --- a/src/msw/utils.cpp +++ b/src/msw/utils.cpp @@ -40,6 +40,12 @@ #include "wx/msw/private.h" // includes #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 +#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