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
This commit is contained in:
Vadim Zeitlin
2002-09-12 13:48:55 +00:00
parent 629724b6b8
commit 58071ea008

View File

@@ -26,7 +26,13 @@
#if wxUSE_SOCKETS || defined(__GSOCKET_STANDALONE__) #if wxUSE_SOCKETS || defined(__GSOCKET_STANDALONE__)
#include <stddef.h> #include <stddef.h>
#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 <sys/types.h> #include <sys/types.h>
#endif #endif