Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] ETIMEDOUT already defined in mingw64 library
@ 2011-10-28  2:09 Alen Skondro
  2011-10-28 13:09 ` Pedro Alves
  0 siblings, 1 reply; 5+ messages in thread
From: Alen Skondro @ 2011-10-28  2:09 UTC (permalink / raw)
  To: gdb-patches

[-- Attachment #1: Type: text/plain, Size: 475 bytes --]

This fixes the problem compiling gdb with latest mingw64 library (trunk).

* ETIMEDOUT is already defined in mingw64.

=================================================

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

[-- Attachment #2: diff-mingw64.patch --]
[-- Type: application/octet-stream, Size: 306 bytes --]

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-10-28 13:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-28  2:09 [PATCH] ETIMEDOUT already defined in mingw64 library Alen Skondro
2011-10-28 13:09 ` Pedro Alves
2011-10-28 13:18   ` asmwarrior
2011-10-28 13:33     ` asmwarrior
2011-10-28 14:02       ` Pedro Alves

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox