[hurd,commited,2/3] hurd: Include <sigsetops.h> from hurd/hurd/signal.h

Message ID 20180128184045.5892-3-samuel.thibault@ens-lyon.org
State New
Headers show
Series
  • hurd: build fixes
Related show

Commit Message

Samuel Thibault Jan. 28, 2018, 6:40 p.m.
* hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
IS_IN(libpthread)]: Include <sigsetops.h>.
---
 ChangeLog          | 2 ++
 hurd/hurd/signal.h | 5 +++++
 2 files changed, 7 insertions(+)

-- 
2.15.1

Comments

Joseph Myers Jan. 29, 2018, 4:35 p.m. | #1
On Sun, 28 Jan 2018, Samuel Thibault wrote:

> diff --git a/hurd/hurd/signal.h b/hurd/hurd/signal.h

> index 1d9c7d8cd7..5ee95acd09 100644

> --- a/hurd/hurd/signal.h

> +++ b/hurd/hurd/signal.h

> @@ -42,6 +42,11 @@

>  #include <spin-lock.h>

>  #include <hurd/threadvar.h>	/* We cache sigstate in a threadvar.  */

>  struct hurd_signal_preemptor;	/* <hurd/sigpreempt.h> */

> +#if defined __USE_EXTERN_INLINES && defined _LIBC

> +#  if IS_IN (libc) || IS_IN (libpthread)

> +#    include <sigsetops.h>

> +#  endif

> +#endif


Again, should be one column of preprocessor indentation per #if level.

-- 
Joseph S. Myers
joseph@codesourcery.com

Patch

diff --git a/ChangeLog b/ChangeLog
index 59fc5f950d..9a9c1fdd38 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -94,6 +94,8 @@ 
 	_POSIX_NO_TRUNC): Define to 0.
 	* sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
 	check size against PTHREAD_STACK_MIN.
+	* hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
+	IS_IN(libpthread)]: Include <sigsetops.h>.
 
 2008-12-18  Thomas Schwinge  <tschwinge@gnu.org>
 
diff --git a/hurd/hurd/signal.h b/hurd/hurd/signal.h
index 1d9c7d8cd7..5ee95acd09 100644
--- a/hurd/hurd/signal.h
+++ b/hurd/hurd/signal.h
@@ -42,6 +42,11 @@ 
 #include <spin-lock.h>
 #include <hurd/threadvar.h>	/* We cache sigstate in a threadvar.  */
 struct hurd_signal_preemptor;	/* <hurd/sigpreempt.h> */
+#if defined __USE_EXTERN_INLINES && defined _LIBC
+#  if IS_IN (libc) || IS_IN (libpthread)
+#    include <sigsetops.h>
+#  endif
+#endif
 
 
 /* Full details of a signal.  */