aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/sys/_sigset.h2
-rw-r--r--sys/sys/select.h5
-rw-r--r--sys/sys/signal.h6
3 files changed, 12 insertions, 1 deletions
diff --git a/sys/sys/_sigset.h b/sys/sys/_sigset.h
index 380031656ee0..dfb954e5b762 100644
--- a/sys/sys/_sigset.h
+++ b/sys/sys/_sigset.h
@@ -54,6 +54,6 @@
typedef struct __sigset {
__uint32_t __bits[_SIG_WORDS];
-} sigset_t;
+} __sigset_t;
#endif /* !_SYS__SIGSET_H_ */
diff --git a/sys/sys/select.h b/sys/sys/select.h
index 11aacdd1e513..67553605b877 100644
--- a/sys/sys/select.h
+++ b/sys/sys/select.h
@@ -54,6 +54,11 @@ typedef unsigned long __fd_mask;
typedef __fd_mask fd_mask;
#endif
+#ifndef _SIGSET_T_DECLARED
+#define _SIGSET_T_DECLARED
+typedef __sigset_t sigset_t;
+#endif
+
/*
* Select uses bit masks of file descriptors in longs. These macros
* manipulate such bit fields (the filesystem macros use chars).
diff --git a/sys/sys/signal.h b/sys/sys/signal.h
index 909832650733..65f401f5e385 100644
--- a/sys/sys/signal.h
+++ b/sys/sys/signal.h
@@ -94,6 +94,12 @@
#define SIGUSR1 30 /* user defined signal 1 */
#define SIGUSR2 31 /* user defined signal 2 */
+/* XXX needs namespace conditional. */
+#ifndef _SIGSET_T_DECLARED
+#define _SIGSET_T_DECLARED
+typedef __sigset_t sigset_t;
+#endif
+
/*-
* Type of a signal handling function.
*