2011-10-28 Alen Skondro <askondro@gmail.com>
authorPedro Alves <palves@redhat.com>
Fri, 28 Oct 2011 13:32:05 +0000 (13:32 +0000)
committerPedro Alves <palves@redhat.com>
Fri, 28 Oct 2011 13:32:05 +0000 (13:32 +0000)
* ser-tcp.c [USE_WIN32API] (ETIMEOUT): Don't define if already
defined.

gdb/ChangeLog
gdb/ser-tcp.c

index a08d868..9f44d03 100644 (file)
@@ -1,3 +1,8 @@
+2011-10-28  Alen Skondro  <askondro@gmail.com>
+
+       * ser-tcp.c [USE_WIN32API] (ETIMEOUT): Don't define if already
+       defined.
+
 2011-10-27  Meador Inge  <meadori@codesourcery.com>
 
        * MAINTAINERS (Write After Approval): Add myself to the list.
index e3d5640..4f2dcdd 100644 (file)
@@ -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