summaryrefslogtreecommitdiff
path: root/src/libstddjb/selfpipe_trapset.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstddjb/selfpipe_trapset.c')
-rw-r--r--src/libstddjb/selfpipe_trapset.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/libstddjb/selfpipe_trapset.c b/src/libstddjb/selfpipe_trapset.c
index 33ac861..519e37b 100644
--- a/src/libstddjb/selfpipe_trapset.c
+++ b/src/libstddjb/selfpipe_trapset.c
@@ -1,16 +1,14 @@
/* ISC license. */
-/* MT-unsafe */
-
-#include <errno.h>
-#include <signal.h>
#include <skalibs/sysdeps.h>
-#include "selfpipe-internal.h"
-#include <skalibs/selfpipe.h>
#ifdef SKALIBS_HASSIGNALFD
+#include <errno.h>
+#include <signal.h>
#include <sys/signalfd.h>
+#include <skalibs/selfpipe.h>
+#include "selfpipe-internal.h"
int selfpipe_trapset (sigset_t const *set)
{
@@ -30,8 +28,13 @@ int selfpipe_trapset (sigset_t const *set)
#else
+#include <skalibs/nonposix.h>
+#include <errno.h>
+#include <signal.h>
#include <skalibs/sig.h>
#include <skalibs/nsig.h>
+#include <skalibs/selfpipe.h>
+#include "selfpipe-internal.h"
int selfpipe_trapset (sigset_t const *set)
{