From: Gisle Vanem Date: Wed, 9 Nov 2005 21:38:58 +0000 (+0000) Subject: MSVC fix for 'socklen_t'. Replace with + X-Git-Tag: upstream/1.10.0~1276 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=14199ea4b979e71525123addb5d941af03a74fcb;p=platform%2Fupstream%2Fc-ares.git MSVC fix for 'socklen_t'. Replace with + since IPv6 is no longer optional (was it ever?) --- diff --git a/setup.h b/setup.h index 619a285..d6e0378 100644 --- a/setup.h +++ b/setup.h @@ -19,8 +19,10 @@ #else /* simple work-around for now, for systems without configure support */ #define ssize_t int +#ifndef _MSC_VER #define socklen_t int #endif +#endif /* Recent autoconf versions define these symbols in config.h. We don't want them (since they collide with the libcurl ones when we build @@ -35,7 +37,8 @@ /* now typedef our socket type */ #if defined(WIN32) && !defined(WATT32) -#include +#include +#include typedef SOCKET ares_socket_t; #define ARES_SOCKET_BAD INVALID_SOCKET #else