diff options
-rw-r--r-- | init/reboot.c | 4 | ||||
-rw-r--r-- | libbb/Makefile.in | 4 | ||||
-rw-r--r-- | libpwdgrp/__getgrent.c | 4 | ||||
-rw-r--r-- | libpwdgrp/__getpwent.c | 4 | ||||
-rw-r--r-- | libpwdgrp/getpwuid.c | 4 | ||||
-rw-r--r-- | libpwdgrp/pwent.c | 3 | ||||
-rw-r--r-- | libpwdgrp/shadow.c | 4 |
7 files changed, 14 insertions, 13 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; |
diff --git a/libbb/Makefile.in b/libbb/Makefile.in index 4a6df77f7..e00fd2f51 100644 --- a/libbb/Makefile.in +++ b/libbb/Makefile.in | |||
@@ -24,8 +24,8 @@ LIBBB_DIR:=$(TOPDIR)libbb/ | |||
24 | endif | 24 | endif |
25 | 25 | ||
26 | LIBBB_SRC:= \ | 26 | LIBBB_SRC:= \ |
27 | ask_confirmation.c chomp.c compare_string_array.c concat_path_file.c \ | 27 | ask_confirmation.c chomp.c concat_path_file.c copy_file.c \ |
28 | copy_file.c copy_file_chunk.c dump.c libc5.c device_open.c error_msg.c \ | 28 | copy_file_chunk.c dump.c libc5.c device_open.c error_msg.c \ |
29 | error_msg_and_die.c fgets_str.c find_mount_point.c find_pid_by_name.c \ | 29 | error_msg_and_die.c fgets_str.c find_mount_point.c find_pid_by_name.c \ |
30 | find_root_device.c full_read.c full_write.c get_console.c \ | 30 | find_root_device.c full_read.c full_write.c get_console.c \ |
31 | get_last_path_component.c get_line_from_file.c \ | 31 | get_last_path_component.c get_line_from_file.c \ |
diff --git a/libpwdgrp/__getgrent.c b/libpwdgrp/__getgrent.c index 5fb4193cb..392301048 100644 --- a/libpwdgrp/__getgrent.c +++ b/libpwdgrp/__getgrent.c | |||
@@ -18,11 +18,11 @@ | |||
18 | * | 18 | * |
19 | */ | 19 | */ |
20 | 20 | ||
21 | #include "busybox.h" | ||
22 | |||
23 | #include <unistd.h> | 21 | #include <unistd.h> |
24 | #include <stdlib.h> | 22 | #include <stdlib.h> |
25 | #include <string.h> | 23 | #include <string.h> |
24 | |||
25 | #include "busybox.h" | ||
26 | #include "grp_.h" | 26 | #include "grp_.h" |
27 | 27 | ||
28 | /* | 28 | /* |
diff --git a/libpwdgrp/__getpwent.c b/libpwdgrp/__getpwent.c index d553250f4..1b38c27ef 100644 --- a/libpwdgrp/__getpwent.c +++ b/libpwdgrp/__getpwent.c | |||
@@ -18,13 +18,13 @@ | |||
18 | * | 18 | * |
19 | */ | 19 | */ |
20 | 20 | ||
21 | #include "busybox.h" | ||
22 | |||
23 | #include <stdlib.h> | 21 | #include <stdlib.h> |
24 | #include <unistd.h> | 22 | #include <unistd.h> |
25 | #include <string.h> | 23 | #include <string.h> |
26 | #include <fcntl.h> | 24 | #include <fcntl.h> |
25 | |||
27 | #include "pwd_.h" | 26 | #include "pwd_.h" |
27 | #include "busybox.h" | ||
28 | 28 | ||
29 | #define PWD_BUFFER_SIZE 256 | 29 | #define PWD_BUFFER_SIZE 256 |
30 | 30 | ||
diff --git a/libpwdgrp/getpwuid.c b/libpwdgrp/getpwuid.c index 819c874ac..23ff3aa88 100644 --- a/libpwdgrp/getpwuid.c +++ b/libpwdgrp/getpwuid.c | |||
@@ -18,12 +18,12 @@ | |||
18 | * | 18 | * |
19 | */ | 19 | */ |
20 | 20 | ||
21 | #include "busybox.h" | ||
22 | |||
23 | #include <stdlib.h> | 21 | #include <stdlib.h> |
24 | #include <unistd.h> | 22 | #include <unistd.h> |
25 | #include <fcntl.h> | 23 | #include <fcntl.h> |
24 | |||
26 | #include "pwd_.h" | 25 | #include "pwd_.h" |
26 | #include "busybox.h" | ||
27 | 27 | ||
28 | struct passwd *getpwuid(uid_t uid) | 28 | struct passwd *getpwuid(uid_t uid) |
29 | { | 29 | { |
diff --git a/libpwdgrp/pwent.c b/libpwdgrp/pwent.c index 1f4239741..133fa4564 100644 --- a/libpwdgrp/pwent.c +++ b/libpwdgrp/pwent.c | |||
@@ -18,14 +18,13 @@ | |||
18 | * | 18 | * |
19 | */ | 19 | */ |
20 | 20 | ||
21 | #include "busybox.h" | ||
22 | |||
23 | #include <unistd.h> | 21 | #include <unistd.h> |
24 | #include <stdlib.h> | 22 | #include <stdlib.h> |
25 | #include <errno.h> | 23 | #include <errno.h> |
26 | #include "pwd_.h" | 24 | #include "pwd_.h" |
27 | #include <fcntl.h> | 25 | #include <fcntl.h> |
28 | 26 | ||
27 | #include "busybox.h" | ||
29 | /* | 28 | /* |
30 | * setpwent(), endpwent(), and getpwent() are included in the same object | 29 | * setpwent(), endpwent(), and getpwent() are included in the same object |
31 | * file, since one cannot be used without the other two, so it makes sense to | 30 | * file, since one cannot be used without the other two, so it makes sense to |
diff --git a/libpwdgrp/shadow.c b/libpwdgrp/shadow.c index c79417383..2d2b108f2 100644 --- a/libpwdgrp/shadow.c +++ b/libpwdgrp/shadow.c | |||
@@ -33,12 +33,12 @@ | |||
33 | * lckpwdf ulckpwdf | 33 | * lckpwdf ulckpwdf |
34 | */ | 34 | */ |
35 | 35 | ||
36 | #include "busybox.h" | ||
37 | |||
38 | #include <stdio.h> | 36 | #include <stdio.h> |
39 | #include <stdlib.h> | 37 | #include <stdlib.h> |
40 | #include <string.h> | 38 | #include <string.h> |
41 | #include <unistd.h> | 39 | #include <unistd.h> |
40 | |||
41 | #include "busybox.h" | ||
42 | #include "shadow_.h" | 42 | #include "shadow_.h" |
43 | 43 | ||
44 | static FILE *shadow; | 44 | static FILE *shadow; |