Subject: RE: Compiling c-ares-1.3.0

RE: Compiling c-ares-1.3.0

From: Ralish <ralish_at_gmail.com>
Date: 2005-11-06

Hello again,

 

Thanks for your response.

 

Following your advice, I added '#define HAVE_IOCTLSOCKET' to the end of the
defines section of ares_process.c, so that it looks like so:

 

<cut>

#if (defined(WIN32) || defined(WATT32)) && !defined(MSDOS)

#define GET_ERRNO() WSAGetLastError()

#else

#define GET_ERRNO() errno

#endif

 

#define HAVE_IOCTLSOCKET

 

static void write_tcp_data(ares_channel channel, fd_set *write_fds,

                           time_t now);

<cut>

 

This eliminated error #1, "no non-blocking method was found/used/set".

 

However, I added '#define HAVE_STRUCT_IN6_ADDR' to the end of the defines
section of ares_init.c, so that it looks like so:

 

<cut>

#ifdef WATT32

#undef WIN32 /* Redefined in MingW/MSVC headers */

#endif

 

#define HAVE_STRUCT_IN6_ADDR

 

static int init_by_options(ares_channel channel, struct ares_options
*options,

                           int optmask);

<cut>

 

However, this had no effect whatsoever, and I continue to experience the
exact same error relevant to this section as before:

ares_init.c

c:\Documents and Settings\SDL\My Documents\My Stuff\XDHC\IRC
Daemons\UnrealIRCd-3.2.3-PDX\PDX\ind\c-ares\c-ares-1.3.0\ares_ipv6.h(26) :
error C2011: 'in6_addr' : 'struct' type redefinition

        c:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\Include\IPExport.h(34) : see declaration of 'in6_addr'

 

Apologies if I am doing something incorrect, I'm not a programmer and so am
relatively clueless in this arena. Thanks again for your assistance.

 

Ralish

 
Received on Sun Nov 6 08:21:47 2005