From patchwork Sun Mar 4 00:29:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Thibault X-Patchwork-Id: 881122 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-90769-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ens-lyon.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="AcJ0dbpM"; 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 3zv3pQ6gkvz9s44 for ; Sun, 4 Mar 2018 11:30:06 +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; q=dns; s= default; b=kxmkWHLzhSPmTStxzPOPN4OAHIPZtxT93v45QsP2pSIccYUkLQcbe drTu3lXdW6PRiPPZA4u0GubmgOzzMj5uwtOxIXtu6FtGEtNU9N9wx6vb31mSq//M +xVM8A/BiejKWldw9ISYgAmQtxBHxCko/e0sXBBslTtfF/03UNLvWY= 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; s=default; bh=MVzDewApDljBCCv3azDqikHJBhk=; b=AcJ0dbpMCaUdhJswYGdgXi64PD91 ipl8BExgs0bzMZ72tXy2Z3L+7JtT72t4KmTirzY/WlpU7huY6k+ZGH5W5pGOW5Un 8Tr4qLfF84RSN/Mjyk6aNLuVFO8Aswwi+rIQrxerM6zfbNcsIkC7a4ovq+oVxfzh CKS3qxC07eIy31U= Received: (qmail 45547 invoked by alias); 4 Mar 2018 00:30:00 -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 45525 invoked by uid 89); 4 Mar 2018 00:30:00 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.1 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_HELO_PASS, SPF_NEUTRAL autolearn=ham version=3.3.2 spammy=2411, H*r:sk:static-, Hx-spam-relays-external:sk:static-, H*RU:sk:static- X-HELO: hera.aquilenet.fr From: Samuel Thibault To: libc-alpha@sourceware.org Cc: Samuel Thibault Subject: [hurd, commited] hurd: avoid including hurd/signal.h when not needed Date: Sun, 4 Mar 2018 01:29:55 +0100 Message-Id: <20180304002955.5037-1-samuel.thibault@ens-lyon.org> thus making and includable without _GNU_SOURCE. * hurd/hurd/port.h: Do not include . * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES || !defined _LIBC || !IS_IN (libc)]: Do not include . --- ChangeLog | 3 +++ hurd/hurd/port.h | 1 - hurd/hurd/userlink.h | 6 +++++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9bfa1bd316..297af745e2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -11,6 +11,9 @@ * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error. * sysdeps/mach/hurd/bits/param.h: Include instead of . + * hurd/hurd/port.h: Do not include . + * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES || + !defined _LIBC || !IS_IN (libc)]: Do not include . 2018-03-03 Andreas Schwab diff --git a/hurd/hurd/port.h b/hurd/hurd/port.h index eec85ccc29..0779578d03 100644 --- a/hurd/hurd/port.h +++ b/hurd/hurd/port.h @@ -24,7 +24,6 @@ #include #include #include -#include /* Structure describing a cell containing a port. With the lock held, a diff --git a/hurd/hurd/userlink.h b/hurd/hurd/userlink.h index fb7cab27c3..f9362557cb 100644 --- a/hurd/hurd/userlink.h +++ b/hurd/hurd/userlink.h @@ -24,7 +24,11 @@ #define __need_NULL #include -#include +#if defined __USE_EXTERN_INLINES && defined _LIBC +# if IS_IN (libc) +# include +# endif +#endif #include