svn commit: trunk/busybox/init

aldot at busybox.net aldot at busybox.net
Fri May 26 20:34:04 UTC 2006


Author: aldot
Date: 2006-05-26 13:34:02 -0700 (Fri, 26 May 2006)
New Revision: 15197

Log:
- provide fallback defines for non-linux


Modified:
   trunk/busybox/init/halt.c


Changeset:
Modified: trunk/busybox/init/halt.c
===================================================================
--- trunk/busybox/init/halt.c	2006-05-26 20:33:12 UTC (rev 15196)
+++ trunk/busybox/init/halt.c	2006-05-26 20:34:02 UTC (rev 15197)
@@ -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";




More information about the busybox-cvs mailing list