From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2126) id 0E77D3858C53; Thu, 14 Apr 2022 18:21:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0E77D3858C53 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Tom Tromey To: gdb-cvs@sourceware.org Subject: [binutils-gdb] Fix possible Cygwin build problem X-Act-Checkin: binutils-gdb X-Git-Author: Tom Tromey X-Git-Refname: refs/heads/master X-Git-Oldrev: a79fa8c5fb5a8a09da25c6858381d8f34b597c12 X-Git-Newrev: a69599e68bf243a50b6aee3a63ed48ada1f9c8cc Message-Id: <20220414182116.0E77D3858C53@sourceware.org> Date: Thu, 14 Apr 2022 18:21:16 +0000 (GMT) X-BeenThere: gdb-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Apr 2022 18:21:16 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Da69599e68bf2= 43a50b6aee3a63ed48ada1f9c8cc commit a69599e68bf243a50b6aee3a63ed48ada1f9c8cc Author: Tom Tromey Date: Wed Apr 13 06:55:30 2022 -0600 Fix possible Cygwin build problem =20 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" =20 +#ifdef __CYGWIN__ +#define __USEWIDE +#endif + namespace windows_nat {