From: Samuel Thibault Date: Sun, 4 Mar 2018 00:28:55 +0000 (+0100) Subject: hurd: avoid including hurd/signal.h when not needed X-Git-Tag: glibc-2.28~515 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3403cb7dd4ce1e36802f448ecba2bccc6706e73e;p=thirdparty%2Fglibc.git 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 . --- diff --git a/ChangeLog b/ChangeLog index 9bfa1bd3169..297af745e27 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 eec85ccc292..0779578d038 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 fb7cab27c3c..f9362557cba 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