diff options
Diffstat (limited to 'init/init.c')
-rw-r--r-- | init/init.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/init/init.c b/init/init.c index 69ce4b2c9..1f0bd4aec 100644 --- a/init/init.c +++ b/init/init.c | |||
@@ -42,6 +42,7 @@ | |||
42 | #include <sys/mount.h> | 42 | #include <sys/mount.h> |
43 | #include <sys/types.h> | 43 | #include <sys/types.h> |
44 | #include <sys/wait.h> | 44 | #include <sys/wait.h> |
45 | #include <sys/reboot.h> | ||
45 | #include "busybox.h" | 46 | #include "busybox.h" |
46 | 47 | ||
47 | #include "init_shared.h" | 48 | #include "init_shared.h" |
@@ -50,9 +51,6 @@ | |||
50 | #ifdef CONFIG_SYSLOGD | 51 | #ifdef CONFIG_SYSLOGD |
51 | # include <sys/syslog.h> | 52 | # include <sys/syslog.h> |
52 | #endif | 53 | #endif |
53 | #if (__GNU_LIBRARY__ > 5) || defined(__dietlibc__) | ||
54 | #include <sys/reboot.h> | ||
55 | #endif | ||
56 | 54 | ||
57 | 55 | ||
58 | #if defined(__UCLIBC__) && !defined(__UCLIBC_HAS_MMU__) | 56 | #if defined(__UCLIBC__) && !defined(__UCLIBC_HAS_MMU__) |
@@ -665,11 +663,7 @@ static void init_reboot(unsigned long magic) | |||
665 | * linux/kernel/sys.c, which can cause the machine to panic when | 663 | * linux/kernel/sys.c, which can cause the machine to panic when |
666 | * the init process is killed.... */ | 664 | * the init process is killed.... */ |
667 | if ((pid = fork()) == 0) { | 665 | if ((pid = fork()) == 0) { |
668 | #if (__GNU_LIBRARY__ > 5) || defined(__dietlibc__) | ||
669 | reboot(magic); | 666 | reboot(magic); |
670 | #else | ||
671 | reboot(0xfee1dead, 672274793, magic); | ||
672 | #endif | ||
673 | _exit(0); | 667 | _exit(0); |
674 | } | 668 | } |
675 | waitpid (pid, NULL, 0); | 669 | waitpid (pid, NULL, 0); |