This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] ETIMEDOUT already defined in mingw64 library


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]