From d765ee5d0fb3a8077dcf4b1520321089aa4104ce Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Fri, 26 May 2006 20:34:02 +0000 Subject: - provide fallback defines for non-linux --- init/halt.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/init/halt.c b/init/halt.c index 38ca382..f3627f2 100644 --- a/init/halt.c +++ b/init/halt.c @@ -15,7 +15,19 @@ int halt_main(int argc, char *argv[]) { - static const int magic[] = {RB_HALT_SYSTEM, RB_POWER_OFF, RB_AUTOBOOT}; + static const int magic[] = { +#ifdef RB_HALT_SYSTEM +RB_HALT_SYSTEM, +#elif defined RB_HALT +RB_HALT, +#endif +#ifdef RB_POWER_OFF +RB_POWER_OFF, +#elif defined RB_POWERDOWN +RB_POWERDOWN, +#endif +RB_AUTOBOOT + }; static const int signals[] = {SIGUSR1, SIGUSR2, SIGTERM}; char *delay = "hpr"; -- cgit v1.1