diff options
author | Michael Tokarev <mjt@tls.msk.ru> | 2014-01-29 12:40:32 +0400 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2014-01-30 13:22:04 +0100 |
commit | 922fdf65273f3047c1f60edee6af555cea1dd499 (patch) | |
tree | a4c68e864959c3ffd7327461ac59c84d9c6a84a6 /init | |
parent | b664f740d90880560ce46b11f766625341342e80 (diff) | |
download | busybox-w32-922fdf65273f3047c1f60edee6af555cea1dd499.tar.gz busybox-w32-922fdf65273f3047c1f60edee6af555cea1dd499.tar.bz2 busybox-w32-922fdf65273f3047c1f60edee6af555cea1dd499.zip |
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 <mjt@tls.msk.ru>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'init')
-rw-r--r-- | init/init.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) | |||
1135 | struct sigaction sa; | 1135 | struct sigaction sa; |
1136 | 1136 | ||
1137 | bb_signals(0 | 1137 | bb_signals(0 |
1138 | #ifdef SIGPWR | ||
1138 | + (1 << SIGPWR) /* halt */ | 1139 | + (1 << SIGPWR) /* halt */ |
1140 | #endif | ||
1139 | + (1 << SIGUSR1) /* halt */ | 1141 | + (1 << SIGUSR1) /* halt */ |
1140 | + (1 << SIGTERM) /* reboot */ | 1142 | + (1 << SIGTERM) /* reboot */ |
1141 | + (1 << SIGUSR2) /* poweroff */ | 1143 | + (1 << SIGUSR2) /* poweroff */ |