Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Alen Skondro <askondro@gmail.com>
To: gdb-patches@sourceware.org
Subject: [PATCH] ETIMEDOUT already defined in mingw64 library
Date: Fri, 28 Oct 2011 02:09:00 -0000	[thread overview]
Message-ID: <CAH9D60pGGPS-UmdJhzyxCuROd5Mk9ymJBuR-WPHWQKOFV9t+BA@mail.gmail.com> (raw)

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

             reply	other threads:[~2011-10-27 22:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-28  2:09 Alen Skondro [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAH9D60pGGPS-UmdJhzyxCuROd5Mk9ymJBuR-WPHWQKOFV9t+BA@mail.gmail.com \
    --to=askondro@gmail.com \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox