From patchwork Tue Jan 8 20:10:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Aurelien Jarno X-Patchwork-Id: 1022118 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-99117-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=aurel32.net Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="dDl5580x"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 43Z3Kw1DMdz9sR5 for ; Wed, 9 Jan 2019 07:10:58 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id :mime-version:content-type:content-transfer-encoding; q=dns; s= default; b=Oft33h14N1i5zBfmK+epZu8j4mpTVQvVyvDSyJGo0DgBBEjYwyETf bxHHDv2scxea6AHr4VJfVoSCSh5i2rBpMDMJmxAkVRJghq5EKJ/1/EKxxNshYFUb T5Dw2NRI4gZXpOSB/jb0cjc/yr01v+5eJflB+2jHzkbtfgegxStjog= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id :mime-version:content-type:content-transfer-encoding; s=default; bh=ACQRGtiPs1U5cOVdRxPIB976Lik=; b=dDl5580xlUL5CcnP7ruFwsaAq8Ph MLu4r1cUjHlGEzU2oHRBjCRgzz4koh5aR3TVK3qpXwe9PShJBn7Bsz9lmRtSAp+b 4NM+xtHvqGLScfQQVPtf+XnSgUEelA2hmVAvIbYi8Jzhy3E/TzZ1NReK8Wkq9A/N l7HCnXiqI4WDN4M= Received: (qmail 67926 invoked by alias); 8 Jan 2019 20:10:52 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 67914 invoked by uid 89); 8 Jan 2019 20:10:51 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-25.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_LAZY_DOMAIN_SECURITY autolearn=ham version=3.3.2 spammy=260, HContent-Transfer-Encoding:8bit X-HELO: hall.aurel32.net From: Aurelien Jarno To: libc-alpha@sourceware.org Cc: Aurelien Jarno Subject: [PATCH] testsuite: stdlib/isomac.c: add missing include Date: Tue, 8 Jan 2019 21:10:38 +0100 Message-Id: <20190108201038.20996-1-aurelien@aurel32.net> MIME-Version: 1.0 When running the testsuite, building stdlib/isomac.c outputs the following warning: gcc -O -D_GNU_SOURCE -DIS_IN_build -include /home/aurel32/glibc-build/config.h isomac.c -o /home/aurel32/glibc-build/stdlib/isomac isomac.c: In function ‘get_null_defines’: isomac.c:260:3: warning: implicit declaration of function ‘close’; did you mean ‘pclose’? [-Wimplicit-function-declaration] close (fd); ^~~~~ pclose Fix that by adding the include. Changelog: * stdlib/isomac.c: Include . Reviewed-by: Jonathan Nieder --- ChangeLog | 4 ++++ stdlib/isomac.c | 1 + 2 files changed, 5 insertions(+) diff --git a/ChangeLog b/ChangeLog index 909e56a49c..4fef3c1807 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2019-01-08 Aurelien Jarno + + * stdlib/isomac.c: Include . + 2019-01-07 H.J. Lu [BZ #24066] diff --git a/stdlib/isomac.c b/stdlib/isomac.c index 37f564c82a..7d743cb8e5 100644 --- a/stdlib/isomac.c +++ b/stdlib/isomac.c @@ -74,6 +74,7 @@ #include #include #include +#include #define HEADER_MAX 256