Re: [PATCH] ETIMEDOUT already defined in mingw64 library

Pedro Alves
2011-10-28T13:33:41Z

On Friday 28 October 2011 14:21:12, asmwarrior wrote:
> 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

Thanks.

> 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.

Alright. gcc complains because the definitions aren't textually the
same, even though they expand to the same. I've applied Alen's
patch, with this ChangeLog entry:

2011-10-28 Alen Skondro <askondro@gmail.com>

* ser-tcp.c [USE_WIN32API] (ETIMEOUT): Don't define if already
defined.

Thanks.

--
Pedro Alves