X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/99f72806595de291c8cf7e4828894188f851affb..f9133b32002a600cb48dd05fbcce1ab3ed684dba:/include/wx/gsocket.h diff --git a/include/wx/gsocket.h b/include/wx/gsocket.h index 85c5cedd80..54db19bc4e 100644 --- a/include/wx/gsocket.h +++ b/include/wx/gsocket.h @@ -26,7 +26,13 @@ #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__) #include #endif