From patchwork Fri Jan 10 22:00:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Simon Marchi X-Patchwork-Id: 37292 Received: (qmail 72421 invoked by alias); 10 Jan 2020 22:00:44 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 72356 invoked by uid 89); 10 Jan 2020 22:00:42 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-22.6 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.1 spammy=229 X-HELO: mail.efficios.com Received: from mail.efficios.com (HELO mail.efficios.com) (167.114.142.138) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 10 Jan 2020 22:00:41 +0000 Received: from localhost (ip6-localhost [IPv6:::1]) by mail.efficios.com (Postfix) with ESMTP id 31C9F696104 for ; Fri, 10 Jan 2020 17:00:40 -0500 (EST) Received: from mail.efficios.com ([IPv6:::1]) by localhost (mail02.efficios.com [IPv6:::1]) (amavisd-new, port 10032) with ESMTP id OXI7YherxpiY; Fri, 10 Jan 2020 17:00:40 -0500 (EST) Received: from localhost (ip6-localhost [IPv6:::1]) by mail.efficios.com (Postfix) with ESMTP id F13AB6960D0; Fri, 10 Jan 2020 17:00:36 -0500 (EST) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.efficios.com F13AB6960D0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficios.com; s=default; t=1578693637; bh=gTTK75wMw2bWfN1CbaY28L/sUPg1l3nJDjPF650oqHk=; h=From:To:Date:Message-Id:MIME-Version; b=XEaJzASKMU+R7G0I8odTYR+oyynrrqRr3CN11qewvOT2tpo+c15p/HuJttI01nvI7 pVrnHoCEuvybTjMfM1kgGfgvA3bkZtPfoDYVL7bFaL0VCeoTtbahmXePRK/N1+BvTP 9qV86gsgmRHb4dk2DytkLCUFO8UFU1mcJOcQqWmXEA7hMBh5xuJ5rMJZSt92FGQN7d /8JTwgS6mfUosp1Be0SR2DPh2uVrI86YaeO4p7nlsoRCmF/zs8F+/ph0HcZJZQNILE lK5LxNs06v0+qrD4r5bTYU2EaPu7KcmTtx4X3KiC9rwPGJkg4kHuMiRxN3bvn7FpE1 RzEl6NHndbb7g== Received: from mail.efficios.com ([IPv6:::1]) by localhost (mail02.efficios.com [IPv6:::1]) (amavisd-new, port 10026) with ESMTP id n6282N0VPCAE; Fri, 10 Jan 2020 17:00:36 -0500 (EST) Received: from smarchi-efficios.internal.efficios.com (192-222-181-218.qc.cable.ebox.net [192.222.181.218]) by mail.efficios.com (Postfix) with ESMTPSA id 9A1E26960A3; Fri, 10 Jan 2020 17:00:35 -0500 (EST) From: Simon Marchi To: gdb-patches@sourceware.org Cc: Simon Marchi Subject: [PATCH v2 3/7] gdbserver: include hostio.h in hostio-errno.c Date: Fri, 10 Jan 2020 17:00:23 -0500 Message-Id: <20200110220027.26450-4-simon.marchi@efficios.com> In-Reply-To: <20200110220027.26450-1-simon.marchi@efficios.com> References: <20200110220027.26450-1-simon.marchi@efficios.com> MIME-Version: 1.0 ... so that the definition of hostio_last_error_from_errno in hostio-errno.c sees the declaration in hostio.h. Fix this error: CXX hostio-errno.o /home/smarchi/src/binutils-gdb/gdb/gdbserver/hostio-errno.c: In function ‘void hostio_last_error_from_errno(char*)’: /home/smarchi/src/binutils-gdb/gdb/gdbserver/hostio-errno.c:28:1: error: no previous declaration for ‘void hostio_last_error_from_errno(char*)’ [-Werror=missing-declarations] hostio_last_error_from_errno (char *buf) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ gdb/gdbserver/ChangeLog: * hostio-errno.c: Include hostio.h. Change-Id: I056308fd4ce12810d0a1b826c423bd0c7eeb8944 --- gdb/gdbserver/hostio-errno.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gdb/gdbserver/hostio-errno.c b/gdb/gdbserver/hostio-errno.c index a4c25e04a604..b75e64d212e7 100644 --- a/gdb/gdbserver/hostio-errno.c +++ b/gdb/gdbserver/hostio-errno.c @@ -22,6 +22,9 @@ on top of errno. */ #include "server.h" + +#include "hostio.h" + #include "gdbsupport/fileio.h" void