diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2017-04-28 11:16:35 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2017-04-28 11:16:35 +0000 |
commit | 94caf2cee5c03e037c465648eac8cb1dd32c7c73 (patch) | |
tree | 3e059edc0066bcda00e397f5b80eb7c85c7d460b /src/libstddjb/selfpipe_trapset.c | |
parent | dfca03df0761c526bba84af0baa37ac9dbb5b42d (diff) | |
download | skalibs-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.c | 15 |
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) { |