public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
From: Tom Tromey <tromey@sourceware.org>
To: gdb-cvs@sourceware.org
Subject: [binutils-gdb] Fix possible Cygwin build problem
Date: Thu, 14 Apr 2022 18:21:16 +0000 (GMT)	[thread overview]
Message-ID: <20220414182116.0E77D3858C53@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=a69599e68bf243a50b6aee3a63ed48ada1f9c8cc

commit a69599e68bf243a50b6aee3a63ed48ada1f9c8cc
Author: Tom Tromey <tromey@adacore.com>
Date:   Wed Apr 13 06:55:30 2022 -0600

    Fix possible Cygwin build problem
    
    I noticed that nat/windows-nat.c checks __USEWIDE, but nothing sets it
    there -- I forgot to copy over the definition when making this file.
    This patch tries to fix the problem.  I don't have a Cygwin setup, so
    I don't know whether this is sufficient, but it's probably necessary.

Diff:
---
 gdb/nat/windows-nat.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gdb/nat/windows-nat.c b/gdb/nat/windows-nat.c
index 2e4c4826797..a82aa89b085 100644
--- a/gdb/nat/windows-nat.c
+++ b/gdb/nat/windows-nat.c
@@ -20,6 +20,10 @@
 #include "nat/windows-nat.h"
 #include "gdbsupport/common-debug.h"
 
+#ifdef __CYGWIN__
+#define __USEWIDE
+#endif
+
 namespace windows_nat
 {


                 reply	other threads:[~2022-04-14 18:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20220414182116.0E77D3858C53@sourceware.org \
    --to=tromey@sourceware.org \
    --cc=gdb-cvs@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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).