From: Daniel Stenberg <daniel@haxx.se>
Date: Mon, 25 Feb 2002 08:20:29 +0000 (+0000)
Subject: cygnus can't include winsock.h even though it has it, why we need to
X-Git-Tag: curl-7_9_5-pre4~20
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e4fefd088d535704dbcdfa5cc9950e59b1787332;p=curl

cygnus can't include winsock.h even though it has it, why we need to
make a different and more complicated check for when to include it
---

diff --git a/lib/multi.h b/lib/multi.h
index a9bd4eaf4..d178d5340 100644
--- a/lib/multi.h
+++ b/lib/multi.h
@@ -50,7 +50,7 @@
 #ifdef HAVE_SYS_SOCKET_H
 #include <sys/socket.h>
 #endif
-#ifdef HAVE_WINSOCK_H
+#ifdef defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__)
 #include <winsock.h>
 #endif