diff options
author | Glenn L McGrath <bug1@ihug.co.nz> | 2002-12-07 23:14:40 +0000 |
---|---|---|
committer | Glenn L McGrath <bug1@ihug.co.nz> | 2002-12-07 23:14:40 +0000 |
commit | 4e05b9b0431aff7b44f57c333288401caaf86300 (patch) | |
tree | 82036519c3af41b6bc4bca084384320fc2c6d6e3 /init | |
parent | 0325a1c9e3ef37017d4eeac7f61300a28fe4dc5b (diff) | |
download | busybox-w32-4e05b9b0431aff7b44f57c333288401caaf86300.tar.gz busybox-w32-4e05b9b0431aff7b44f57c333288401caaf86300.tar.bz2 busybox-w32-4e05b9b0431aff7b44f57c333288401caaf86300.zip |
include "busybox" after the libc includes tofix compile errors
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; |