summaryrefslogtreecommitdiff
path: root/signal.c
diff options
context:
space:
mode:
Diffstat (limited to 'signal.c')
-rw-r--r--signal.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/signal.c b/signal.c
index 6fb9de0..30189d9 100644
--- a/signal.c
+++ b/signal.c
@@ -5,9 +5,13 @@
* POSIX thread-aware signal functions.
*/
+#include <errno.h>
+
#include "pthread.h"
#include "implement.h"
+#ifdef HAVE_SIGSET_T
+
int
pthread_sigmask(int how, const sigset_t *set, sigset_t *oset)
{
@@ -70,3 +74,5 @@ pthread_sigmask(int how, const sigset_t *set, sigset_t *oset)
return 0;
}
+
+#endif /* HAVE_SIGSET_T */