X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/99f72806595de291c8cf7e4828894188f851affb..529b7f71bd62a79c79c91931729bdaa245489750:/include/wx/gsocket.h diff --git a/include/wx/gsocket.h b/include/wx/gsocket.h index 85c5cedd80..5cd91ae001 100644 --- a/include/wx/gsocket.h +++ b/include/wx/gsocket.h @@ -26,10 +26,20 @@ #if wxUSE_SOCKETS || defined(__GSOCKET_STANDALONE__) #include -#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__) && !defined(__WXWINCE__) #include #endif +#ifdef __WXWINCE__ +#include +#endif + #ifdef __cplusplus extern "C" { #endif