diff options
author | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2002-12-07 23:14:40 +0000 |
---|---|---|
committer | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2002-12-07 23:14:40 +0000 |
commit | 6de66790a39d7b295914ecc77e261ac8b255fb03 (patch) | |
tree | 82036519c3af41b6bc4bca084384320fc2c6d6e3 /init/reboot.c | |
parent | 574fe8352800ddc933bf68fd335c0076ecbab9ee (diff) | |
download | busybox-w32-6de66790a39d7b295914ecc77e261ac8b255fb03.tar.gz busybox-w32-6de66790a39d7b295914ecc77e261ac8b255fb03.tar.bz2 busybox-w32-6de66790a39d7b295914ecc77e261ac8b255fb03.zip |
include "busybox" after the libc includes tofix compile errors
git-svn-id: svn://busybox.net/trunk/busybox@6129 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'init/reboot.c')
-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; |