summaryrefslogtreecommitdiff
path: root/src/libstddjb/selfpipe_trapset.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2017-04-28 11:16:35 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2017-04-28 11:16:35 +0000
commit94caf2cee5c03e037c465648eac8cb1dd32c7c73 (patch)
tree3e059edc0066bcda00e397f5b80eb7c85c7d460b /src/libstddjb/selfpipe_trapset.c
parentdfca03df0761c526bba84af0baa37ac9dbb5b42d (diff)
downloadskalibs-94caf2cee5c03e037c465648eac8cb1dd32c7c73.tar.xz
Always pair skalibs/nsig.h with skalibs/nonposix.h (and screw NSIG with a chainsaw)
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)
{