projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b21d23b
)
- provide fallback defines for non-linux
author
Bernhard Reutner-Fischer
<rep.dot.nop@gmail.com>
Fri, 26 May 2006 20:34:02 +0000
(20:34 -0000)
committer
Bernhard Reutner-Fischer
<rep.dot.nop@gmail.com>
Fri, 26 May 2006 20:34:02 +0000
(20:34 -0000)
init/halt.c
patch
|
blob
|
history
diff --git
a/init/halt.c
b/init/halt.c
index 38ca38222570aba64bd5dd440571b3b492ddd99f..f3627f206bfae8a69b47ca734b03bdae68df66db 100644
(file)
--- 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";