From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_PASS, SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id BDB3D1F4B4 for ; Mon, 19 Oct 2020 15:09:55 +0000 (UTC) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D509F388C002; Mon, 19 Oct 2020 15:09:54 +0000 (GMT) Received: from mail-out.m-online.net (mail-out.m-online.net [IPv6:2001:a60:0:28:0:1:25:1]) by sourceware.org (Postfix) with ESMTPS id 96E13388C002 for ; Mon, 19 Oct 2020 15:09:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 96E13388C002 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: sourceware.org; spf=none smtp.mailfrom=lukma@denx.de Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4CFKtR5hZ1z1rxcH; Mon, 19 Oct 2020 17:09:51 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4CFKtR4VXJz1qqkS; Mon, 19 Oct 2020 17:09:51 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id 7AUbUwXJdXc5; Mon, 19 Oct 2020 17:09:50 +0200 (CEST) X-Auth-Info: P6TdzYMc1ephGNVnURmIdZf+6tZ8i/wScpYSFDXPHfQ= Received: from localhost.localdomain (85-222-111-42.dynamic.chello.pl [85.222.111.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Mon, 19 Oct 2020 17:09:49 +0200 (CEST) From: Lukasz Majewski To: Joseph Myers , Paul Eggert , Adhemerval Zanella Subject: [PATCH] tst: ftime: Add missing include to provide EXIT_UNSUPPORTED definition Date: Mon, 19 Oct 2020 17:09:04 +0200 Message-Id: <20201019150904.2135-1-lukma@denx.de> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Florian Weimer , GNU C Library , Andreas Schwab , Stepan Golosunov , Alistair Francis Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" On some ports - like rv32 the ftime is not supported at all. As a result the EXIT_UNSUPPORTED is not defined (as proper include is added when ./support/test-driver.c is pasted). This commit fixes following error: #include tst-ftime.c:62:10: error: ‘EXIT_UNSUPPORTED’ undeclared (first use in this function) 62 | return EXIT_UNSUPPORTED; | ^~~~~~~~~~~~~~~~ tst-ftime.c:62:10: note: each undeclared identifier is reported only once for each function it appears in when ../src/scripts/build-many-glibcs.py ../glibc-many-build --keep failed glibcs riscv32-linux-gnu-rv32imac-ilp32 riscv32-linux-gnu-rv32imafdc-ilp32 riscv32-linux-gnu-rv32imafdc-ilp32d is run. --- time/tst-ftime.c | 1 + 1 file changed, 1 insertion(+) diff --git a/time/tst-ftime.c b/time/tst-ftime.c index 6978feb0f1..5815e49580 100644 --- a/time/tst-ftime.c +++ b/time/tst-ftime.c @@ -56,6 +56,7 @@ do_test (void) return 0; } #else +#include static int do_test (void) { -- 2.20.1