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: 26179 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