[BusyBox-cvs] busybox/init reboot.c,1.24,1.25
Glenn McGrath
bug1 at busybox.net
Sat Dec 7 23:14:41 UTC 2002
Update of /var/cvs/busybox/init
In directory winder:/tmp/cvs-serv19125/init
Modified Files:
reboot.c
Log Message:
include "busybox" after the libc includes tofix compile errors
Index: reboot.c
===================================================================
RCS file: /var/cvs/busybox/init/reboot.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- reboot.c 17 Sep 2002 08:40:12 -0000 1.24
+++ reboot.c 7 Dec 2002 23:14:38 -0000 1.25
@@ -21,18 +21,20 @@
*
*/
-#include "busybox.h"
#include <signal.h>
#include <stdlib.h>
#include <unistd.h>
#include <getopt.h>
+#include "busybox.h"
+
#if (__GNU_LIBRARY__ > 5) || defined(__dietlibc__)
#include <sys/reboot.h>
#define init_reboot(magic) reboot(magic)
#else
#define init_reboot(magic) reboot(0xfee1dead, 672274793, magic)
#endif
+
#ifndef RB_ENABLE_CAD
static const int RB_ENABLE_CAD = 0x89abcdef;
static const int RB_AUTOBOOT = 0x01234567;
More information about the busybox-cvs
mailing list