[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: [PATCH trivial] do not fail build if SIGPWR is not defined
From:       Denys Vlasenko <vda.linux () googlemail ! com>
Date:       2014-01-30 11:46:27
Message-ID: CAK1hOcNA14Xuqipv-PcxDs3WLKmMXNdtfLh73pFSgADRndz-sg () mail ! gmail ! com
[Download RAW message or body]

Applied, thanks!

On Wed, Jan 29, 2014 at 9:40 AM, Michael Tokarev <mjt@tls.msk.ru> wrote:
> 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>
>
> diff --git a/init/init.c b/init/init.c
> index d29328c..992a21e 100644
> --- a/init/init.c
> +++ b/init/init.c
> @@ -1135,7 +1137,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 */
> _______________________________________________
> busybox mailing list
> busybox@busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic