Re: [PATCH] ETIMEDOUT already defined in mingw64 library

Pedro Alves
2011-10-28T08:51:18Z

On Thursday 27 October 2011 23:14:40, Alen Skondro wrote:
> This fixes the problem compiling gdb with latest mingw64 library (trunk).
>
> * ETIMEDOUT is already defined in mingw64.

OOC, if you're getting an error, it's because it's defined
to something different. What is is defined to?

>
> =================================================
>
> diff --git a/gdb/ser-tcp.c b/gdb/ser-tcp.c
> index e3d5640..4f2dcdd 100644
> --- a/gdb/ser-tcp.c
> +++ b/gdb/ser-tcp.c
> @@ -39,7 +39,9 @@
>
> #ifdef USE_WIN32API
> #include <winsock2.h>
> +#ifndef ETIMEDOUT
> #define ETIMEDOUT WSAETIMEDOUT
> +#endif
> #define close(fd) closesocket (fd)
> #define ioctl ioctlsocket
> #else
>

--
Pedro Alves