diff options
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) { |