diff options
author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-12-12 23:22:35 +0000 |
---|---|---|
committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-12-12 23:22:35 +0000 |
commit | 1a72e1eb1b45fcfc97efa5f9d7d521123351b586 (patch) | |
tree | 9605698a7e3c7eb059d3849fe963c48f75d3db1f /init | |
parent | 0a6dd392bca29b276b6ed3a2662b499211d0b51e (diff) | |
download | busybox-w32-1a72e1eb1b45fcfc97efa5f9d7d521123351b586.tar.gz busybox-w32-1a72e1eb1b45fcfc97efa5f9d7d521123351b586.tar.bz2 busybox-w32-1a72e1eb1b45fcfc97efa5f9d7d521123351b586.zip |
Cleanup for proper compilation with uClibc.
git-svn-id: svn://busybox.net/trunk/busybox@1438 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'init')
-rw-r--r-- | init/init.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/init/init.c b/init/init.c index e5b1a3931..75d2f33b9 100644 --- a/init/init.c +++ b/init/init.c | |||
@@ -84,10 +84,11 @@ struct serial_struct { | |||
84 | #define RB_DISABLE_CAD 0 | 84 | #define RB_DISABLE_CAD 0 |
85 | #define RB_POWER_OFF 0x4321fedc | 85 | #define RB_POWER_OFF 0x4321fedc |
86 | #define RB_AUTOBOOT 0x01234567 | 86 | #define RB_AUTOBOOT 0x01234567 |
87 | #if defined(__GLIBC__) | 87 | #if defined(__GLIBC__) || defined (__UCLIBC__) |
88 | #include <sys/reboot.h> | 88 | #include <sys/reboot.h> |
89 | #define init_reboot(magic) reboot(magic) | 89 | #define init_reboot(magic) reboot(magic) |
90 | #else | 90 | #else |
91 | extern int reboot __P ((int __howto)); | ||
91 | #define init_reboot(magic) reboot(0xfee1dead, 672274793, magic) | 92 | #define init_reboot(magic) reboot(0xfee1dead, 672274793, magic) |
92 | #endif | 93 | #endif |
93 | #endif | 94 | #endif |