]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
hurd: avoid including hurd/signal.h when not needed
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 4 Mar 2018 00:28:55 +0000 (01:28 +0100)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 4 Mar 2018 00:28:55 +0000 (01:28 +0100)
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>.

ChangeLog
hurd/hurd/port.h
hurd/hurd/userlink.h

index 9bfa1bd316953230ef3ae77a87e2cfc0e4d90f3b..297af745e273b5a91d3532ba8bf7405be5a252c6 100644 (file)
--- 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 <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>
 
index eec85ccc2924a84a3bb926b5fc7340c0611f8643..0779578d0387de926a15814189e8c20a154e89db 100644 (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
index fb7cab27c3c971316479cc4d586d84d24269b86e..f9362557cba5497a251ac6ba53e262d2aedaadba 100644 (file)
 #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>