diff options
Diffstat (limited to 'init')
-rw-r--r-- | init/reboot.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/init/reboot.c b/init/reboot.c index 1c9eedde5..872d9e741 100644 --- a/init/reboot.c +++ b/init/reboot.c | |||
@@ -21,18 +21,20 @@ | |||
21 | * | 21 | * |
22 | */ | 22 | */ |
23 | 23 | ||
24 | #include "busybox.h" | ||
25 | #include <signal.h> | 24 | #include <signal.h> |
26 | #include <stdlib.h> | 25 | #include <stdlib.h> |
27 | #include <unistd.h> | 26 | #include <unistd.h> |
28 | #include <getopt.h> | 27 | #include <getopt.h> |
29 | 28 | ||
29 | #include "busybox.h" | ||
30 | |||
30 | #if (__GNU_LIBRARY__ > 5) || defined(__dietlibc__) | 31 | #if (__GNU_LIBRARY__ > 5) || defined(__dietlibc__) |
31 | #include <sys/reboot.h> | 32 | #include <sys/reboot.h> |
32 | #define init_reboot(magic) reboot(magic) | 33 | #define init_reboot(magic) reboot(magic) |
33 | #else | 34 | #else |
34 | #define init_reboot(magic) reboot(0xfee1dead, 672274793, magic) | 35 | #define init_reboot(magic) reboot(0xfee1dead, 672274793, magic) |
35 | #endif | 36 | #endif |
37 | |||
36 | #ifndef RB_ENABLE_CAD | 38 | #ifndef RB_ENABLE_CAD |
37 | static const int RB_ENABLE_CAD = 0x89abcdef; | 39 | static const int RB_ENABLE_CAD = 0x89abcdef; |
38 | static const int RB_AUTOBOOT = 0x01234567; | 40 | static const int RB_AUTOBOOT = 0x01234567; |