From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 111752 invoked by alias); 20 Jan 2020 15:52:38 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 111741 invoked by uid 89); 20 Jan 2020 15:52:37 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=HX-Received:a1c X-HELO: us-smtp-delivery-1.mimecast.com Received: from us-smtp-1.mimecast.com (HELO us-smtp-delivery-1.mimecast.com) (205.139.110.61) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 20 Jan 2020 15:52:27 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1579535545; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Gf6DTwkSQ+me4aR/jLGXTmnjTDxd0rscaA82XU1WpLI=; b=BsMTdix1tPPWANJ05Ne6xc4tlQGDIWM2g7a+8GRA2v24pbCG0AQBxtz59yeZ3shu9WA1E2 XOxxd8YHv9b0l++kbJN7DOA1JSIU+w5eKNmmHaPDqH7gf6gOlzlWUIkavVjUWNCqWMW5hm B0DhW7b+zFS9pTY2hQfdtmmwlW7qGTs= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-30-v1NSSUYaN1yGc7nmcsePZg-1; Mon, 20 Jan 2020 10:52:22 -0500 Received: by mail-wr1-f69.google.com with SMTP id o6so14235159wrp.8 for ; Mon, 20 Jan 2020 07:52:22 -0800 (PST) Return-Path: Received: from ?IPv6:2001:8a0:f913:f700:56ee:75ff:fe8d:232b? ([2001:8a0:f913:f700:56ee:75ff:fe8d:232b]) by smtp.gmail.com with ESMTPSA id o4sm47894972wrw.97.2020.01.20.07.52.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 20 Jan 2020 07:52:20 -0800 (PST) Subject: Re: [PATCH 2/3] Consistently use BFD's time To: Eli Zaretskii , Tom Tromey References: <20200114210956.25115-1-tromey@adacore.com> <20200114210956.25115-3-tromey@adacore.com> <83wo9s4sac.fsf@gnu.org> <83d0bi348d.fsf@gnu.org> <871rrygco6.fsf@tromey.com> <874kwteraa.fsf@tromey.com> <83v9p919hy.fsf@gnu.org> Cc: cbiesinger@google.com, gdb-patches@sourceware.org From: Pedro Alves Message-ID: Date: Mon, 20 Jan 2020 15:53:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-SW-Source: 2020-01/txt/msg00610.txt.bz2 On 1/20/20 3:48 PM, Pedro Alves wrote: > So I think we can take advantage of that to be able to make sure that > when we include "bfd.h", its functions are declared using the system's > stat, which is the same version that bfd is built against. > See prototype patch below, particularly common-types.h, which the > place where we include bfd.h for the first time. > > It builds with my mingw cross compiler, the remaining issue would be > looking more in detail to the to_sys_stat conversion function. > > I've also attached a gnulib fix for an issue I ran into, which will > need to go upstream. Forgot to say that I put this on the users/palves/stat branch if you'd like to try it & poke at it. Thanks, Pedro Alves