From patchwork Fri Dec 8 04:42:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Frysinger X-Patchwork-Id: 81722 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 19C283858292 for ; Fri, 8 Dec 2023 04:42:22 +0000 (GMT) X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) by sourceware.org (Postfix) with ESMTP id B05693858C20 for ; Fri, 8 Dec 2023 04:42:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B05693858C20 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gentoo.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org B05693858C20 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2001:470:ea4a:1:5054:ff:fec7:86e4 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1702010529; cv=none; b=qQTkdyN1KGFw9rkGo4c7z6LHws2TWfvjTbz/SOUnnG7UvT7x72i8YDlD2x0mgAjojRHHTFnAQOyyMmaZfaidedrXOUwmzTmlW92MVgJuALB7wdwzg3ardhOq2oOoK1vEFFusddBeUBx8VLViEy7vaz1zbefoqIfDXQbm2bFfI8Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1702010529; c=relaxed/simple; bh=u0TYVm/OsOEfS7LHBb8wGYHLGOqB4wcz1gcdiYj2PPE=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=HXgOH6cnXbo2tmV6c3YH3ncuH7OO1OE9us1uUx5n5n2ZkPr74g56wUoQibiZnC2aDQ3GByCj+YeaNtKCujtH1mU5tQSHYBIyX77ld/+MC7W+LP/vre1FG7aSLV3IKT1CxGftpypJpR5Is0JIGJQLSNSqGN7InKTz7LE1+BX3kQ4= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by smtp.gentoo.org (Postfix, from userid 559) id 32A5D33E02F; Fri, 8 Dec 2023 04:42:07 +0000 (UTC) From: Mike Frysinger To: gdb-patches@sourceware.org Subject: [PATCH 2/3 committed] sim: m32r: include more glibc headers for the funcs we use [PR sim/29752] Date: Thu, 7 Dec 2023 21:42:02 -0700 Message-ID: <20231208044203.25315-2-vapier@gentoo.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231208044203.25315-1-vapier@gentoo.org> References: <20231208044203.25315-1-vapier@gentoo.org> MIME-Version: 1.0 X-Spam-Status: No, score=-11.2 required=5.0 tests=BAYES_00, GIT_PATCH_0, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org Not exactly portable, but doesn't make the situation worse here, and fixes a lot of implicit function warnings. Bug: https://sourceware.org/PR29752 --- sim/m32r/traps.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sim/m32r/traps.c b/sim/m32r/traps.c index 060b331c28f1..80c4360235b6 100644 --- a/sim/m32r/traps.c +++ b/sim/m32r/traps.c @@ -38,9 +38,14 @@ NB: The emulation is also missing argument conversion (endian & bitsize) even on Linux hosts. */ #ifdef __linux__ +#include +#include +#include +#include #include #include #include +#include #include #include #include