diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-03-04 01:28:55 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-03-04 01:28:55 +0100 |
commit | 3403cb7dd4ce1e36802f448ecba2bccc6706e73e (patch) | |
tree | 7da7f1946352dd2d74f07aa2a20cabd29e184785 /hurd | |
parent | 430fd94599e20a71a38a01135bcafe2719a0bd8f (diff) | |
download | glibc-3403cb7dd4ce1e36802f448ecba2bccc6706e73e.tar.gz |
hurd: avoid including hurd/signal.h when not needed
thus making <hurd/port.h> and <hurd/userlink.h> includable without
_GNU_SOURCE.
* hurd/hurd/port.h: Do not include <hurd/signal.h>.
* hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
!defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
Diffstat (limited to 'hurd')
-rw-r--r-- | hurd/hurd/port.h | 1 | ||||
-rw-r--r-- | hurd/hurd/userlink.h | 6 |
2 files changed, 5 insertions, 2 deletions
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 <mach.h> #include <hurd/userlink.h> #include <spin-lock.h> -#include <hurd/signal.h> /* 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 <stddef.h> -#include <hurd/signal.h> +#if defined __USE_EXTERN_INLINES && defined _LIBC +# if IS_IN (libc) +# include <hurd/signal.h> +# endif +#endif #include <setjmp.h> |