From: Vadim Zeitlin Date: Thu, 12 Sep 2002 13:48:55 +0000 (+0000) Subject: fix for cygwin warning in winsock.h about sys/types.h from Dimitri X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/58071ea0089e929db5899d27072b10d79ed57f10?ds=inline fix for cygwin warning in winsock.h about sys/types.h from Dimitri git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17151 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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