diff options
Diffstat (limited to 'coreutils')
37 files changed, 72 insertions, 7 deletions
diff --git a/coreutils/basename.c b/coreutils/basename.c index fcc7d4619..0caae39a4 100644 --- a/coreutils/basename.c +++ b/coreutils/basename.c | |||
@@ -22,7 +22,8 @@ | |||
22 | */ | 22 | */ |
23 | 23 | ||
24 | #include "busybox.h" | 24 | #include "busybox.h" |
25 | #include <stdio.h> | 25 | #include <stdlib.h> |
26 | #include <string.h> | ||
26 | 27 | ||
27 | extern int basename_main(int argc, char **argv) | 28 | extern int basename_main(int argc, char **argv) |
28 | { | 29 | { |
diff --git a/coreutils/cat.c b/coreutils/cat.c index 151ce4e61..a1b878258 100644 --- a/coreutils/cat.c +++ b/coreutils/cat.c | |||
@@ -22,7 +22,7 @@ | |||
22 | */ | 22 | */ |
23 | 23 | ||
24 | #include "busybox.h" | 24 | #include "busybox.h" |
25 | #include <stdio.h> | 25 | #include <stdlib.h> |
26 | 26 | ||
27 | extern int cat_main(int argc, char **argv) | 27 | extern int cat_main(int argc, char **argv) |
28 | { | 28 | { |
diff --git a/coreutils/chroot.c b/coreutils/chroot.c index 91d3407f2..e6f1d034b 100644 --- a/coreutils/chroot.c +++ b/coreutils/chroot.c | |||
@@ -25,6 +25,7 @@ | |||
25 | #include "busybox.h" | 25 | #include "busybox.h" |
26 | #include <stdlib.h> | 26 | #include <stdlib.h> |
27 | #include <stdio.h> | 27 | #include <stdio.h> |
28 | #include <unistd.h> | ||
28 | #include <errno.h> | 29 | #include <errno.h> |
29 | 30 | ||
30 | int chroot_main(int argc, char **argv) | 31 | int chroot_main(int argc, char **argv) |
diff --git a/coreutils/cmp.c b/coreutils/cmp.c index 6b955447c..a4b6c7d49 100644 --- a/coreutils/cmp.c +++ b/coreutils/cmp.c | |||
@@ -26,6 +26,7 @@ | |||
26 | #include <stdio.h> | 26 | #include <stdio.h> |
27 | #include <string.h> | 27 | #include <string.h> |
28 | #include <errno.h> | 28 | #include <errno.h> |
29 | #include <stdlib.h> | ||
29 | 30 | ||
30 | int cmp_main(int argc, char **argv) | 31 | int cmp_main(int argc, char **argv) |
31 | { | 32 | { |
diff --git a/coreutils/date.c b/coreutils/date.c index 73fc70511..8b6a0620d 100644 --- a/coreutils/date.c +++ b/coreutils/date.c | |||
@@ -31,6 +31,7 @@ | |||
31 | #include <unistd.h> | 31 | #include <unistd.h> |
32 | #include <time.h> | 32 | #include <time.h> |
33 | #include <stdio.h> | 33 | #include <stdio.h> |
34 | #include <string.h> | ||
34 | #include <getopt.h> | 35 | #include <getopt.h> |
35 | 36 | ||
36 | 37 | ||
diff --git a/coreutils/dd.c b/coreutils/dd.c index 32eeb661c..dac9ccdf3 100644 --- a/coreutils/dd.c +++ b/coreutils/dd.c | |||
@@ -24,6 +24,10 @@ | |||
24 | #include "busybox.h" | 24 | #include "busybox.h" |
25 | 25 | ||
26 | #include <sys/types.h> | 26 | #include <sys/types.h> |
27 | #include <stdlib.h> | ||
28 | #include <stdio.h> | ||
29 | #include <unistd.h> | ||
30 | #include <string.h> | ||
27 | #include <fcntl.h> | 31 | #include <fcntl.h> |
28 | 32 | ||
29 | static struct suffix_mult dd_suffixes[] = { | 33 | static struct suffix_mult dd_suffixes[] = { |
diff --git a/coreutils/df.c b/coreutils/df.c index 22797fbae..0408f9f54 100644 --- a/coreutils/df.c +++ b/coreutils/df.c | |||
@@ -24,8 +24,10 @@ | |||
24 | 24 | ||
25 | #include "busybox.h" | 25 | #include "busybox.h" |
26 | #include <stdio.h> | 26 | #include <stdio.h> |
27 | #include <stdlib.h> | ||
27 | #include <mntent.h> | 28 | #include <mntent.h> |
28 | #include <sys/vfs.h> | 29 | #include <sys/vfs.h> |
30 | #include <getopt.h> | ||
29 | 31 | ||
30 | extern const char mtab_file[]; /* Defined in utility.c */ | 32 | extern const char mtab_file[]; /* Defined in utility.c */ |
31 | #ifdef BB_FEATURE_HUMAN_READABLE | 33 | #ifdef BB_FEATURE_HUMAN_READABLE |
diff --git a/coreutils/dirname.c b/coreutils/dirname.c index 63c557a29..333f08d41 100644 --- a/coreutils/dirname.c +++ b/coreutils/dirname.c | |||
@@ -22,6 +22,8 @@ | |||
22 | */ | 22 | */ |
23 | #include "busybox.h" | 23 | #include "busybox.h" |
24 | #include <stdio.h> | 24 | #include <stdio.h> |
25 | #include <stdlib.h> | ||
26 | #include <string.h> | ||
25 | 27 | ||
26 | extern int dirname_main(int argc, char **argv) | 28 | extern int dirname_main(int argc, char **argv) |
27 | { | 29 | { |
diff --git a/coreutils/du.c b/coreutils/du.c index 56a7a9a0c..9cc2a673d 100644 --- a/coreutils/du.c +++ b/coreutils/du.c | |||
@@ -31,6 +31,8 @@ | |||
31 | #include <fcntl.h> | 31 | #include <fcntl.h> |
32 | #include <dirent.h> | 32 | #include <dirent.h> |
33 | #include <stdio.h> | 33 | #include <stdio.h> |
34 | #include <stdlib.h> | ||
35 | #include <getopt.h> | ||
34 | #include <errno.h> | 36 | #include <errno.h> |
35 | 37 | ||
36 | #ifdef BB_FEATURE_HUMAN_READABLE | 38 | #ifdef BB_FEATURE_HUMAN_READABLE |
@@ -185,7 +187,7 @@ int du_main(int argc, char **argv) | |||
185 | return status; | 187 | return status; |
186 | } | 188 | } |
187 | 189 | ||
188 | /* $Id: du.c,v 1.34 2001/01/22 22:35:38 rjune Exp $ */ | 190 | /* $Id: du.c,v 1.35 2001/01/27 08:24:37 andersen Exp $ */ |
189 | /* | 191 | /* |
190 | Local Variables: | 192 | Local Variables: |
191 | c-file-style: "linux" | 193 | c-file-style: "linux" |
diff --git a/coreutils/echo.c b/coreutils/echo.c index 393f4425f..b3e01afec 100644 --- a/coreutils/echo.c +++ b/coreutils/echo.c | |||
@@ -24,6 +24,8 @@ | |||
24 | 24 | ||
25 | #include "busybox.h" | 25 | #include "busybox.h" |
26 | #include <stdio.h> | 26 | #include <stdio.h> |
27 | #include <string.h> | ||
28 | #include <stdlib.h> | ||
27 | 29 | ||
28 | extern int | 30 | extern int |
29 | echo_main(int argc, char** argv) | 31 | echo_main(int argc, char** argv) |
diff --git a/coreutils/expr.c b/coreutils/expr.c index eed2637f2..71bd22417 100644 --- a/coreutils/expr.c +++ b/coreutils/expr.c | |||
@@ -35,9 +35,11 @@ | |||
35 | 35 | ||
36 | #include "busybox.h" | 36 | #include "busybox.h" |
37 | #include <stdio.h> | 37 | #include <stdio.h> |
38 | #include <string.h> | ||
39 | #include <stdlib.h> | ||
40 | #include <regex.h> | ||
38 | #include <sys/types.h> | 41 | #include <sys/types.h> |
39 | 42 | ||
40 | #include <regex.h> | ||
41 | 43 | ||
42 | /* The kinds of value we can have. */ | 44 | /* The kinds of value we can have. */ |
43 | enum valtype { | 45 | enum valtype { |
diff --git a/coreutils/head.c b/coreutils/head.c index a0ca453de..71aa8258c 100644 --- a/coreutils/head.c +++ b/coreutils/head.c | |||
@@ -25,6 +25,8 @@ | |||
25 | #include "busybox.h" | 25 | #include "busybox.h" |
26 | #include <errno.h> | 26 | #include <errno.h> |
27 | #include <stdio.h> | 27 | #include <stdio.h> |
28 | #include <getopt.h> | ||
29 | #include <stdlib.h> | ||
28 | 30 | ||
29 | int head(int len, FILE *fp) | 31 | int head(int len, FILE *fp) |
30 | { | 32 | { |
diff --git a/coreutils/hostid.c b/coreutils/hostid.c index 35a5859c4..eed1a50ec 100644 --- a/coreutils/hostid.c +++ b/coreutils/hostid.c | |||
@@ -22,6 +22,8 @@ | |||
22 | 22 | ||
23 | #include "busybox.h" | 23 | #include "busybox.h" |
24 | #include <stdio.h> | 24 | #include <stdio.h> |
25 | #include <stdlib.h> | ||
26 | #include <unistd.h> | ||
25 | 27 | ||
26 | extern int hostid_main(int argc, char **argv) | 28 | extern int hostid_main(int argc, char **argv) |
27 | { | 29 | { |
diff --git a/coreutils/id.c b/coreutils/id.c index d50de4775..e91ac7585 100644 --- a/coreutils/id.c +++ b/coreutils/id.c | |||
@@ -24,6 +24,7 @@ | |||
24 | #include <stdio.h> | 24 | #include <stdio.h> |
25 | #include <unistd.h> | 25 | #include <unistd.h> |
26 | #include <getopt.h> | 26 | #include <getopt.h> |
27 | #include <string.h> | ||
27 | #include <sys/types.h> | 28 | #include <sys/types.h> |
28 | 29 | ||
29 | extern int id_main(int argc, char **argv) | 30 | extern int id_main(int argc, char **argv) |
diff --git a/coreutils/ln.c b/coreutils/ln.c index e69cb024a..d6bf6443a 100644 --- a/coreutils/ln.c +++ b/coreutils/ln.c | |||
@@ -28,7 +28,10 @@ | |||
28 | 28 | ||
29 | #include <stdio.h> | 29 | #include <stdio.h> |
30 | #include <dirent.h> | 30 | #include <dirent.h> |
31 | #include <string.h> | ||
32 | #include <stdlib.h> | ||
31 | #include <errno.h> | 33 | #include <errno.h> |
34 | #include <unistd.h> | ||
32 | 35 | ||
33 | static const int LN_SYMLINK = 1; | 36 | static const int LN_SYMLINK = 1; |
34 | static const int LN_FORCE = 2; | 37 | static const int LN_FORCE = 2; |
diff --git a/coreutils/logname.c b/coreutils/logname.c index d614e85f1..edec016e6 100644 --- a/coreutils/logname.c +++ b/coreutils/logname.c | |||
@@ -22,6 +22,8 @@ | |||
22 | 22 | ||
23 | #include "busybox.h" | 23 | #include "busybox.h" |
24 | #include <stdio.h> | 24 | #include <stdio.h> |
25 | #include <stdlib.h> | ||
26 | #include <unistd.h> | ||
25 | 27 | ||
26 | extern int logname_main(int argc, char **argv) | 28 | extern int logname_main(int argc, char **argv) |
27 | { | 29 | { |
diff --git a/coreutils/ls.c b/coreutils/ls.c index 4b225d6f8..affa48c12 100644 --- a/coreutils/ls.c +++ b/coreutils/ls.c | |||
@@ -59,6 +59,7 @@ static const int COLUMN_GAP = 2; /* includes the file type char, if present */ | |||
59 | #include <time.h> | 59 | #include <time.h> |
60 | #endif | 60 | #endif |
61 | #include <string.h> | 61 | #include <string.h> |
62 | #include <stdlib.h> | ||
62 | 63 | ||
63 | #include <fcntl.h> | 64 | #include <fcntl.h> |
64 | #include <signal.h> | 65 | #include <signal.h> |
diff --git a/coreutils/mkdir.c b/coreutils/mkdir.c index 92357a665..eb6e7db7d 100644 --- a/coreutils/mkdir.c +++ b/coreutils/mkdir.c | |||
@@ -28,6 +28,8 @@ | |||
28 | 28 | ||
29 | #include <stdio.h> | 29 | #include <stdio.h> |
30 | #include <errno.h> | 30 | #include <errno.h> |
31 | #include <string.h> | ||
32 | #include <stdlib.h> | ||
31 | 33 | ||
32 | static int parentFlag = FALSE; | 34 | static int parentFlag = FALSE; |
33 | static mode_t mode = 0777; | 35 | static mode_t mode = 0777; |
diff --git a/coreutils/mkfifo.c b/coreutils/mkfifo.c index 728e1ec2f..b31e6f172 100644 --- a/coreutils/mkfifo.c +++ b/coreutils/mkfifo.c | |||
@@ -24,6 +24,7 @@ | |||
24 | #include <stdio.h> | 24 | #include <stdio.h> |
25 | #include <sys/types.h> | 25 | #include <sys/types.h> |
26 | #include <errno.h> | 26 | #include <errno.h> |
27 | #include <stdlib.h> | ||
27 | 28 | ||
28 | extern int mkfifo_main(int argc, char **argv) | 29 | extern int mkfifo_main(int argc, char **argv) |
29 | { | 30 | { |
diff --git a/coreutils/mknod.c b/coreutils/mknod.c index 4d8c598ea..c761aea6f 100644 --- a/coreutils/mknod.c +++ b/coreutils/mknod.c | |||
@@ -26,6 +26,8 @@ | |||
26 | #include <sys/types.h> | 26 | #include <sys/types.h> |
27 | #include <fcntl.h> | 27 | #include <fcntl.h> |
28 | #include <unistd.h> | 28 | #include <unistd.h> |
29 | #include <string.h> | ||
30 | #include <stdlib.h> | ||
29 | 31 | ||
30 | int mknod_main(int argc, char **argv) | 32 | int mknod_main(int argc, char **argv) |
31 | { | 33 | { |
diff --git a/coreutils/pwd.c b/coreutils/pwd.c index da089f37c..a9acbc721 100644 --- a/coreutils/pwd.c +++ b/coreutils/pwd.c | |||
@@ -25,6 +25,8 @@ | |||
25 | #include <stdio.h> | 25 | #include <stdio.h> |
26 | #include <dirent.h> | 26 | #include <dirent.h> |
27 | #include <errno.h> | 27 | #include <errno.h> |
28 | #include <unistd.h> | ||
29 | #include <stdlib.h> | ||
28 | 30 | ||
29 | extern int pwd_main(int argc, char **argv) | 31 | extern int pwd_main(int argc, char **argv) |
30 | { | 32 | { |
diff --git a/coreutils/rm.c b/coreutils/rm.c index a9501ec7f..302599ec0 100644 --- a/coreutils/rm.c +++ b/coreutils/rm.c | |||
@@ -28,6 +28,8 @@ | |||
28 | #include <utime.h> | 28 | #include <utime.h> |
29 | #include <dirent.h> | 29 | #include <dirent.h> |
30 | #include <errno.h> | 30 | #include <errno.h> |
31 | #include <unistd.h> | ||
32 | #include <stdlib.h> | ||
31 | 33 | ||
32 | static int recursiveFlag = FALSE; | 34 | static int recursiveFlag = FALSE; |
33 | static int forceFlag = FALSE; | 35 | static int forceFlag = FALSE; |
diff --git a/coreutils/rmdir.c b/coreutils/rmdir.c index f9f82bba4..8c2165e6b 100644 --- a/coreutils/rmdir.c +++ b/coreutils/rmdir.c | |||
@@ -25,6 +25,8 @@ | |||
25 | #include "busybox.h" | 25 | #include "busybox.h" |
26 | #include <stdio.h> | 26 | #include <stdio.h> |
27 | #include <errno.h> | 27 | #include <errno.h> |
28 | #include <unistd.h> | ||
29 | #include <stdlib.h> | ||
28 | 30 | ||
29 | extern int rmdir_main(int argc, char **argv) | 31 | extern int rmdir_main(int argc, char **argv) |
30 | { | 32 | { |
diff --git a/coreutils/sleep.c b/coreutils/sleep.c index 10eca593e..61b7ce404 100644 --- a/coreutils/sleep.c +++ b/coreutils/sleep.c | |||
@@ -23,6 +23,8 @@ | |||
23 | 23 | ||
24 | #include "busybox.h" | 24 | #include "busybox.h" |
25 | #include <stdio.h> | 25 | #include <stdio.h> |
26 | #include <unistd.h> | ||
27 | #include <stdlib.h> | ||
26 | 28 | ||
27 | extern int sleep_main(int argc, char **argv) | 29 | extern int sleep_main(int argc, char **argv) |
28 | { | 30 | { |
diff --git a/coreutils/sort.c b/coreutils/sort.c index efff6b653..2aef2d955 100644 --- a/coreutils/sort.c +++ b/coreutils/sort.c | |||
@@ -22,6 +22,8 @@ | |||
22 | */ | 22 | */ |
23 | 23 | ||
24 | #include "busybox.h" | 24 | #include "busybox.h" |
25 | #include <getopt.h> | ||
26 | #include <stdlib.h> | ||
25 | 27 | ||
26 | int compare_ascii(const void *x, const void *y) | 28 | int compare_ascii(const void *x, const void *y) |
27 | { | 29 | { |
diff --git a/coreutils/sync.c b/coreutils/sync.c index 8f101cf17..f95c24c6c 100644 --- a/coreutils/sync.c +++ b/coreutils/sync.c | |||
@@ -23,6 +23,7 @@ | |||
23 | 23 | ||
24 | #include "busybox.h" | 24 | #include "busybox.h" |
25 | #include <stdio.h> | 25 | #include <stdio.h> |
26 | #include <unistd.h> | ||
26 | 27 | ||
27 | extern int sync_main(int argc, char **argv) | 28 | extern int sync_main(int argc, char **argv) |
28 | { | 29 | { |
diff --git a/coreutils/tail.c b/coreutils/tail.c index dc5918d6b..40511aa7b 100644 --- a/coreutils/tail.c +++ b/coreutils/tail.c | |||
@@ -23,8 +23,12 @@ | |||
23 | 23 | ||
24 | #include "busybox.h" | 24 | #include "busybox.h" |
25 | 25 | ||
26 | #include <sys/types.h> | ||
27 | #include <fcntl.h> | 26 | #include <fcntl.h> |
27 | #include <getopt.h> | ||
28 | #include <string.h> | ||
29 | #include <stdlib.h> | ||
30 | #include <unistd.h> | ||
31 | #include <sys/types.h> | ||
28 | 32 | ||
29 | static struct suffix_mult tail_suffixes[] = { | 33 | static struct suffix_mult tail_suffixes[] = { |
30 | { "b", 512 }, | 34 | { "b", 512 }, |
diff --git a/coreutils/touch.c b/coreutils/touch.c index 1b03075e8..fa2f3b609 100644 --- a/coreutils/touch.c +++ b/coreutils/touch.c | |||
@@ -28,6 +28,8 @@ | |||
28 | #include <fcntl.h> | 28 | #include <fcntl.h> |
29 | #include <utime.h> | 29 | #include <utime.h> |
30 | #include <errno.h> | 30 | #include <errno.h> |
31 | #include <unistd.h> | ||
32 | #include <stdlib.h> | ||
31 | 33 | ||
32 | extern int touch_main(int argc, char **argv) | 34 | extern int touch_main(int argc, char **argv) |
33 | { | 35 | { |
diff --git a/coreutils/tr.c b/coreutils/tr.c index 15e3709bb..2717a92db 100644 --- a/coreutils/tr.c +++ b/coreutils/tr.c | |||
@@ -191,9 +191,9 @@ extern int tr_main(int argc, char **argv) | |||
191 | map(input, input_length, output, output_length); | 191 | map(input, input_length, output, output_length); |
192 | } | 192 | } |
193 | for (i = 0; i < input_length; i++) | 193 | for (i = 0; i < input_length; i++) |
194 | invec[input[i]] = TRUE; | 194 | invec[(int)input[i]] = TRUE; |
195 | for (i = 0; i < output_length; i++) | 195 | for (i = 0; i < output_length; i++) |
196 | outvec[output[i]] = TRUE; | 196 | outvec[(int)output[i]] = TRUE; |
197 | } | 197 | } |
198 | convert(); | 198 | convert(); |
199 | return (0); | 199 | return (0); |
diff --git a/coreutils/tty.c b/coreutils/tty.c index 46201d3e6..2a64b149d 100644 --- a/coreutils/tty.c +++ b/coreutils/tty.c | |||
@@ -22,6 +22,8 @@ | |||
22 | 22 | ||
23 | #include "busybox.h" | 23 | #include "busybox.h" |
24 | #include <stdio.h> | 24 | #include <stdio.h> |
25 | #include <stdlib.h> | ||
26 | #include <unistd.h> | ||
25 | #include <sys/types.h> | 27 | #include <sys/types.h> |
26 | 28 | ||
27 | extern int tty_main(int argc, char **argv) | 29 | extern int tty_main(int argc, char **argv) |
diff --git a/coreutils/uname.c b/coreutils/uname.c index 4f7c643f9..deaffd700 100644 --- a/coreutils/uname.c +++ b/coreutils/uname.c | |||
@@ -33,6 +33,7 @@ | |||
33 | 33 | ||
34 | #include "busybox.h" | 34 | #include "busybox.h" |
35 | #include <stdio.h> | 35 | #include <stdio.h> |
36 | #include <stdlib.h> | ||
36 | #include <sys/types.h> | 37 | #include <sys/types.h> |
37 | #include <sys/utsname.h> | 38 | #include <sys/utsname.h> |
38 | 39 | ||
diff --git a/coreutils/uniq.c b/coreutils/uniq.c index c0229aecb..228855962 100644 --- a/coreutils/uniq.c +++ b/coreutils/uniq.c | |||
@@ -26,7 +26,9 @@ | |||
26 | #include "busybox.h" | 26 | #include "busybox.h" |
27 | #include <stdio.h> | 27 | #include <stdio.h> |
28 | #include <string.h> | 28 | #include <string.h> |
29 | #include <getopt.h> | ||
29 | #include <errno.h> | 30 | #include <errno.h> |
31 | #include <stdlib.h> | ||
30 | 32 | ||
31 | static int print_count; | 33 | static int print_count; |
32 | static int print_uniq = 1; | 34 | static int print_uniq = 1; |
diff --git a/coreutils/uudecode.c b/coreutils/uudecode.c index 7b26d2dad..fcfcfd903 100644 --- a/coreutils/uudecode.c +++ b/coreutils/uudecode.c | |||
@@ -27,6 +27,10 @@ | |||
27 | #include <stdio.h> | 27 | #include <stdio.h> |
28 | #include <errno.h> | 28 | #include <errno.h> |
29 | #include <getopt.h> | 29 | #include <getopt.h> |
30 | #include <string.h> | ||
31 | #include <stdlib.h> | ||
32 | #include "pwd_grp/pwd.h" | ||
33 | #include "pwd_grp/grp.h" | ||
30 | 34 | ||
31 | /*struct passwd *getpwnam();*/ | 35 | /*struct passwd *getpwnam();*/ |
32 | 36 | ||
diff --git a/coreutils/uuencode.c b/coreutils/uuencode.c index 24aabd373..5df49026b 100644 --- a/coreutils/uuencode.c +++ b/coreutils/uuencode.c | |||
@@ -27,6 +27,7 @@ | |||
27 | #include <stdio.h> | 27 | #include <stdio.h> |
28 | #include <errno.h> | 28 | #include <errno.h> |
29 | #include <getopt.h> | 29 | #include <getopt.h> |
30 | #include <stdlib.h> | ||
30 | 31 | ||
31 | #define RW (S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH) | 32 | #define RW (S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH) |
32 | 33 | ||
diff --git a/coreutils/wc.c b/coreutils/wc.c index e6f753435..619c161a7 100644 --- a/coreutils/wc.c +++ b/coreutils/wc.c | |||
@@ -23,6 +23,7 @@ | |||
23 | #include "busybox.h" | 23 | #include "busybox.h" |
24 | #include <stdio.h> | 24 | #include <stdio.h> |
25 | #include <getopt.h> | 25 | #include <getopt.h> |
26 | #include <stdlib.h> | ||
26 | 27 | ||
27 | static int total_lines, total_words, total_chars, max_length; | 28 | static int total_lines, total_words, total_chars, max_length; |
28 | static int print_lines, print_words, print_chars, print_length; | 29 | static int print_lines, print_words, print_chars, print_length; |
diff --git a/coreutils/whoami.c b/coreutils/whoami.c index d7f0a177c..870ede43e 100644 --- a/coreutils/whoami.c +++ b/coreutils/whoami.c | |||
@@ -22,6 +22,8 @@ | |||
22 | 22 | ||
23 | #include "busybox.h" | 23 | #include "busybox.h" |
24 | #include <stdio.h> | 24 | #include <stdio.h> |
25 | #include <stdlib.h> | ||
26 | #include <unistd.h> | ||
25 | 27 | ||
26 | extern int whoami_main(int argc, char **argv) | 28 | extern int whoami_main(int argc, char **argv) |
27 | { | 29 | { |
diff --git a/coreutils/yes.c b/coreutils/yes.c index 46873f3f9..0ce49499f 100644 --- a/coreutils/yes.c +++ b/coreutils/yes.c | |||
@@ -22,6 +22,7 @@ | |||
22 | 22 | ||
23 | #include "busybox.h" | 23 | #include "busybox.h" |
24 | #include <stdio.h> | 24 | #include <stdio.h> |
25 | #include <stdlib.h> | ||
25 | 26 | ||
26 | extern int yes_main(int argc, char **argv) | 27 | extern int yes_main(int argc, char **argv) |
27 | { | 28 | { |