]> git.saurik.com Git - wxWidgets.git/commitdiff
fix for cygwin warning in winsock.h about sys/types.h from Dimitri
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 12 Sep 2002 13:48:55 +0000 (13:48 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 12 Sep 2002 13:48:55 +0000 (13:48 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17151 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/gsocket.h

index 85c5cedd8098c35d966c02b51a13e97b558ae12e..54db19bc4eae2a0826c71eb2a1f6b21abec583e8 100644 (file)
 #if wxUSE_SOCKETS || defined(__GSOCKET_STANDALONE__)
 
 #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>
 #endif