diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h index 9a7590edd..9402bb04b 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -484,6 +484,7 @@ enum { | |||
484 | + (1LL << SIGUSR2) | 484 | + (1LL << SIGUSR2) |
485 | + 0), | 485 | + 0), |
486 | }; | 486 | }; |
487 | #if !ENABLE_PLATFORM_MINGW32 | ||
487 | void bb_signals(int sigs, void (*f)(int)) FAST_FUNC; | 488 | void bb_signals(int sigs, void (*f)(int)) FAST_FUNC; |
488 | /* Unlike signal() and bb_signals, sets handler with sigaction() | 489 | /* Unlike signal() and bb_signals, sets handler with sigaction() |
489 | * and in a way that while signal handler is run, no other signals | 490 | * and in a way that while signal handler is run, no other signals |
@@ -501,6 +502,10 @@ void sig_unblock(int sig) FAST_FUNC; | |||
501 | int sigaction_set(int sig, const struct sigaction *act) FAST_FUNC; | 502 | int sigaction_set(int sig, const struct sigaction *act) FAST_FUNC; |
502 | /* SIG_BLOCK/SIG_UNBLOCK all signals: */ | 503 | /* SIG_BLOCK/SIG_UNBLOCK all signals: */ |
503 | int sigprocmask_allsigs(int how) FAST_FUNC; | 504 | int sigprocmask_allsigs(int how) FAST_FUNC; |
505 | #else | ||
506 | #define bb_signals(s, f) | ||
507 | #define kill_myself_with_sig(s) | ||
508 | #endif | ||
504 | /* Standard handler which just records signo */ | 509 | /* Standard handler which just records signo */ |
505 | extern smallint bb_got_signal; | 510 | extern smallint bb_got_signal; |
506 | void record_signo(int signo); /* not FAST_FUNC! */ | 511 | void record_signo(int signo); /* not FAST_FUNC! */ |