From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io1-xd2b.google.com (mail-io1-xd2b.google.com [IPv6:2607:f8b0:4864:20::d2b]) by sourceware.org (Postfix) with ESMTPS id 1957F3857C48 for ; Wed, 13 Apr 2022 19:18:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 1957F3857C48 Received: by mail-io1-xd2b.google.com with SMTP id y65so3034793iof.1 for ; Wed, 13 Apr 2022 12:18:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=vgNgdnMzDNdUASJ6xzNqvPD7cCtJ/u3bNt+wG9ja82A=; b=B+1cHcQEKxer2SRC5sMWzBdGSF7VKFkbGr4Ea+cNyXq89a2gKULQDKlj8hUqUVW4HS JamLVkTCgsc13iZ8Fx/tjHnWrlzbQf4bAMB07tSjEUEg7Lq50LHWGno1zScR7382eNIp YjpAkCAjiUH9TtF+CVCMTd2y6gqB39te4/+KGXA7Hd37NRKjrwfjTiYSiIjuWuB5oF8C f1oNvLcek5/+9zub30zSlneU5WZE0hacidHJGnl/xZff2/Qn60OIpqELt8CLEHdvXqfG Th9PO/8MvB8ZWsYMNuHp025trfpEbfp4xi0/p4sWtqfBG+1OqQR67qrMVW8GmQZX9v6u FEuw== X-Gm-Message-State: AOAM5317cqI0nNWKQ1J48VzOkRrBEGzbEGJzST25p4yUOZzchjN/9+eS Y6SPFIe+8NxoBOf6h2CexQMv6xH/8OBnFg== X-Google-Smtp-Source: ABdhPJz9rEXjIJqerSukLVCs65feTnFBdtPrDBaRGsg7zV5b3+MPSjme3/vEmu7wSxnjnTP12SLcdA== X-Received: by 2002:a05:6638:2611:b0:323:be52:bb0e with SMTP id m17-20020a056638261100b00323be52bb0emr21933870jat.232.1649877479403; Wed, 13 Apr 2022 12:17:59 -0700 (PDT) Received: from murgatroyd.Home (71-211-154-204.hlrn.qwest.net. [71.211.154.204]) by smtp.gmail.com with ESMTPSA id e203-20020a6bb5d4000000b0064dafa0416fsm427660iof.2.2022.04.13.12.17.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Apr 2022 12:17:58 -0700 (PDT) From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [PATCH 1/9] Fix possible Cygwin build problem Date: Wed, 13 Apr 2022 13:17:48 -0600 Message-Id: <20220413191756.1146768-2-tromey@adacore.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220413191756.1146768-1-tromey@adacore.com> References: <20220413191756.1146768-1-tromey@adacore.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Apr 2022 19:18:01 -0000 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. --- 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 c890ee13c6c..e6d73485c24 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 { -- 2.34.1