summaryrefslogtreecommitdiff
path: root/init/reboot.c
diff options
context:
space:
mode:
authorGlenn L McGrath2002-12-07 23:14:40 +0000
committerGlenn L McGrath2002-12-07 23:14:40 +0000
commit4e05b9b0431aff7b44f57c333288401caaf86300 (patch)
tree82036519c3af41b6bc4bca084384320fc2c6d6e3 /init/reboot.c
parent0325a1c9e3ef37017d4eeac7f61300a28fe4dc5b (diff)
downloadbusybox-4e05b9b0431aff7b44f57c333288401caaf86300.zip
busybox-4e05b9b0431aff7b44f57c333288401caaf86300.tar.gz
include "busybox" after the libc includes tofix compile errors
Diffstat (limited to 'init/reboot.c')
-rw-r--r--init/reboot.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/init/reboot.c b/init/reboot.c
index 1c9eedd..872d9e7 100644
--- a/init/reboot.c
+++ b/init/reboot.c
@@ -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;