]> granicus.if.org Git - curl/commitdiff
cygnus can't include winsock.h even though it has it, why we need to
authorDaniel Stenberg <daniel@haxx.se>
Mon, 25 Feb 2002 08:20:29 +0000 (08:20 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 25 Feb 2002 08:20:29 +0000 (08:20 +0000)
make a different and more complicated check for when to include it

lib/multi.h

index a9bd4eaf4181569a84cae82a15f5ada700fbd154..d178d5340add090892cc4e8dece8a0b32e856172 100644 (file)
@@ -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