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>.
This commit is contained in:
Samuel Thibault 2018-03-04 01:28:55 +01:00
parent 430fd94599
commit 3403cb7dd4
3 changed files with 8 additions and 2 deletions

View File

@ -11,6 +11,9 @@
* sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
* sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
of <mach/param.h>.
* 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>.
2018-03-03 Andreas Schwab <schwab@linux-m68k.org>

View File

@ -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

View File

@ -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>