Re: [PATCH] ETIMEDOUT already defined in mingw64 library

asmwarrior
2011-10-28T13:18:30Z

On 2011-10-28 21:12, asmwarrior wrote:
> On 2011-10-28 16:50, Pedro Alves wrote:
>> OOC, if you're getting an error, it's because it's defined
>> to something different. What is is defined to?
> In file:
> i686-w64-mingw32\include\errno.h
>
> It was defined as below:
>
> /* Defined as WSAETIMEDOUT. */
> #ifndef ETIMEDOUT
> #define ETIMEDOUT 10060
> #endif
>
>

BTW:
WSAETIMEDOUT can be found in two places:

i686-w64-mingw32\include\psdk_inc\_wsa_errnos.h

line 43:
#define WSAETIMEDOUT (WSABASEERR + 60 )
and WSABASEERR is defined by:
#define WSABASEERR 10000

In another place:
i686-w64-mingw32\include\winerror.h line 1646
#define WSAETIMEDOUT 10060L

I'm not sure which header file does \gdb\ser-tcp.c use.

So, it looks like all the ETIMEDOUT definition is actually the same value.