diff options
| author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-05-26 20:34:02 +0000 |
|---|---|---|
| committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-05-26 20:34:02 +0000 |
| commit | d765ee5d0fb3a8077dcf4b1520321089aa4104ce (patch) | |
| tree | 0273957293744caa4440c71dccae9cda4546bd21 /init | |
| parent | b21d23bd465b2f8a859183496c55e3613cd9cdda (diff) | |
| download | busybox-w32-d765ee5d0fb3a8077dcf4b1520321089aa4104ce.tar.gz busybox-w32-d765ee5d0fb3a8077dcf4b1520321089aa4104ce.tar.bz2 busybox-w32-d765ee5d0fb3a8077dcf4b1520321089aa4104ce.zip | |
- provide fallback defines for non-linux
Diffstat (limited to 'init')
| -rw-r--r-- | init/halt.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/init/halt.c b/init/halt.c index 38ca38222..f3627f206 100644 --- a/init/halt.c +++ b/init/halt.c | |||
| @@ -15,7 +15,19 @@ | |||
| 15 | 15 | ||
| 16 | int halt_main(int argc, char *argv[]) | 16 | int halt_main(int argc, char *argv[]) |
| 17 | { | 17 | { |
| 18 | static const int magic[] = {RB_HALT_SYSTEM, RB_POWER_OFF, RB_AUTOBOOT}; | 18 | static const int magic[] = { |
| 19 | #ifdef RB_HALT_SYSTEM | ||
| 20 | RB_HALT_SYSTEM, | ||
| 21 | #elif defined RB_HALT | ||
| 22 | RB_HALT, | ||
| 23 | #endif | ||
| 24 | #ifdef RB_POWER_OFF | ||
| 25 | RB_POWER_OFF, | ||
| 26 | #elif defined RB_POWERDOWN | ||
| 27 | RB_POWERDOWN, | ||
| 28 | #endif | ||
| 29 | RB_AUTOBOOT | ||
| 30 | }; | ||
| 19 | static const int signals[] = {SIGUSR1, SIGUSR2, SIGTERM}; | 31 | static const int signals[] = {SIGUSR1, SIGUSR2, SIGTERM}; |
| 20 | 32 | ||
| 21 | char *delay = "hpr"; | 33 | char *delay = "hpr"; |
