From 3403cb7dd4ce1e36802f448ecba2bccc6706e73e Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 4 Mar 2018 01:28:55 +0100 Subject: hurd: avoid including hurd/signal.h when not needed 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 . --- hurd/hurd/port.h | 1 - hurd/hurd/userlink.h | 6 +++++- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'hurd') diff --git a/hurd/hurd/port.h b/hurd/hurd/port.h index eec85cc..0779578 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 fb7cab2..f936255 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 -- cgit v1.1