From: Michael Tokarev Date: Wed, 29 Jan 2014 08:40:32 +0000 (+0400) Subject: init: do not fail build if SIGPWR is not defined X-Git-Tag: 1_23_0~202 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=922fdf65273f3047c1f60edee6af555cea1dd499;p=oweals%2Fbusybox.git init: do not fail build if SIGPWR is not defined Apparently, some *BSD variants (and maybe some other OSes) does not define SIGPWR signal. So since commit 760fc6debcba8c, busybox fails to build on such platforms. Fix this. Signed-off-by: Michael Tokarev Signed-off-by: Denys Vlasenko --- diff --git a/init/init.c b/init/init.c index d29328c36..de438be20 100644 --- a/init/init.c +++ b/init/init.c @@ -1135,7 +1135,9 @@ int init_main(int argc UNUSED_PARAM, char **argv) struct sigaction sa; bb_signals(0 +#ifdef SIGPWR + (1 << SIGPWR) /* halt */ +#endif + (1 << SIGUSR1) /* halt */ + (1 << SIGTERM) /* reboot */ + (1 << SIGUSR2) /* poweroff */