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_finish.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_finish.c')
-rw-r--r-- | src/libstddjb/selfpipe_finish.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/libstddjb/selfpipe_finish.c b/src/libstddjb/selfpipe_finish.c index 0635efb..fd9f6c2 100644 --- a/src/libstddjb/selfpipe_finish.c +++ b/src/libstddjb/selfpipe_finish.c @@ -3,13 +3,14 @@ /* MT-unsafe */ #include <skalibs/sysdeps.h> + +#ifdef SKALIBS_HASSIGNALFD + #include <signal.h> #include <skalibs/djbunix.h> #include "selfpipe-internal.h" #include <skalibs/selfpipe.h> -#ifdef SKALIBS_HASSIGNALFD - void selfpipe_finish (void) { sigprocmask(SIG_UNBLOCK, &selfpipe_caught, 0) ; @@ -20,8 +21,13 @@ void selfpipe_finish (void) #else +#include <skalibs/nonposix.h> +#include <signal.h> #include <skalibs/sig.h> #include <skalibs/nsig.h> +#include <skalibs/djbunix.h> +#include "selfpipe-internal.h" +#include <skalibs/selfpipe.h> void selfpipe_finish (void) { |