From f6afe7fdf1de812bbc656a1ef832088e56412ae3 Mon Sep 17 00:00:00 2001 From: Ryan Norton Date: Tue, 12 Apr 2005 17:18:13 +0000 Subject: [PATCH] Fix warning on CYGWIN for sockets git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33552 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/gsocket.cpp | 6 ++++++ src/msw/utils.cpp | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/src/msw/gsocket.cpp b/src/msw/gsocket.cpp index fbe81c4..83fb30a 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 ef6d79c..5e295b5 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 -- 2.7.4