diff options
author | Eric Andersen <andersen@codepoet.org> | 2000-12-12 23:22:35 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2000-12-12 23:22:35 +0000 |
commit | e3a48d865a8f95aeedf27a31fe153ecabc2daefb (patch) | |
tree | 9605698a7e3c7eb059d3849fe963c48f75d3db1f | |
parent | d9d03b83f861c814bbbdbed50d07429a513949bb (diff) | |
download | busybox-e3a48d865a8f95aeedf27a31fe153ecabc2daefb.tar.gz |
Cleanup for proper compilation with uClibc.
-rw-r--r-- | init.c | 3 | ||||
-rw-r--r-- | init/init.c | 3 |
2 files changed, 4 insertions, 2 deletions
@@ -84,10 +84,11 @@ struct serial_struct { #define RB_DISABLE_CAD 0 #define RB_POWER_OFF 0x4321fedc #define RB_AUTOBOOT 0x01234567 -#if defined(__GLIBC__) +#if defined(__GLIBC__) || defined (__UCLIBC__) #include <sys/reboot.h> #define init_reboot(magic) reboot(magic) #else + extern int reboot __P ((int __howto)); #define init_reboot(magic) reboot(0xfee1dead, 672274793, magic) #endif #endif 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 { #define RB_DISABLE_CAD 0 #define RB_POWER_OFF 0x4321fedc #define RB_AUTOBOOT 0x01234567 -#if defined(__GLIBC__) +#if defined(__GLIBC__) || defined (__UCLIBC__) #include <sys/reboot.h> #define init_reboot(magic) reboot(magic) #else + extern int reboot __P ((int __howto)); #define init_reboot(magic) reboot(0xfee1dead, 672274793, magic) #endif #endif |