diff options
author | Manuel Novoa III <mjn3@codepoet.org> | 2001-06-29 18:59:32 +0000 |
---|---|---|
committer | Manuel Novoa III <mjn3@codepoet.org> | 2001-06-29 18:59:32 +0000 |
commit | a2949aa217f255341a0507b6e340285bdea1001f (patch) | |
tree | 9b51d9d86b8165853b4062470b5fc2074e649195 | |
parent | ff9eee475f61800fe33bd60ac12b8b29015cbcdd (diff) | |
download | busybox-w32-a2949aa217f255341a0507b6e340285bdea1001f.tar.gz busybox-w32-a2949aa217f255341a0507b6e340285bdea1001f.tar.bz2 busybox-w32-a2949aa217f255341a0507b6e340285bdea1001f.zip |
Add some missing includes to kill warnings when building with the default
Config.h and using gcc's -fno-builtin. There are probably other files
with the similar problems.
Also, if building against uClibc, don't include asm/unistd.h in syscalls.c
and module_syscalls.c.
-rw-r--r-- | archival/libunarchive/decompress_unzip.c | 1 | ||||
-rw-r--r-- | archival/libunarchive/unzip.c | 1 | ||||
-rw-r--r-- | coreutils/rm.c | 1 | ||||
-rw-r--r-- | libbb/concat_path_file.c | 1 | ||||
-rw-r--r-- | libbb/copy_file.c | 1 | ||||
-rw-r--r-- | libbb/dirname.c | 1 | ||||
-rw-r--r-- | libbb/last_char_is.c | 1 | ||||
-rw-r--r-- | libbb/module_syscalls.c | 2 | ||||
-rw-r--r-- | libbb/remove_file.c | 1 | ||||
-rw-r--r-- | libbb/syscalls.c | 2 | ||||
-rw-r--r-- | libbb/unzip.c | 1 | ||||
-rw-r--r-- | rm.c | 1 |
12 files changed, 14 insertions, 0 deletions
diff --git a/archival/libunarchive/decompress_unzip.c b/archival/libunarchive/decompress_unzip.c index 40b8af427..b85eb9981 100644 --- a/archival/libunarchive/decompress_unzip.c +++ b/archival/libunarchive/decompress_unzip.c | |||
@@ -64,6 +64,7 @@ static char *license_msg[] = { | |||
64 | #include <sys/wait.h> | 64 | #include <sys/wait.h> |
65 | #include <signal.h> | 65 | #include <signal.h> |
66 | #include <stdlib.h> | 66 | #include <stdlib.h> |
67 | #include <string.h> | ||
67 | #include "libbb.h" | 68 | #include "libbb.h" |
68 | 69 | ||
69 | FILE *in_file, *out_file; | 70 | FILE *in_file, *out_file; |
diff --git a/archival/libunarchive/unzip.c b/archival/libunarchive/unzip.c index 40b8af427..b85eb9981 100644 --- a/archival/libunarchive/unzip.c +++ b/archival/libunarchive/unzip.c | |||
@@ -64,6 +64,7 @@ static char *license_msg[] = { | |||
64 | #include <sys/wait.h> | 64 | #include <sys/wait.h> |
65 | #include <signal.h> | 65 | #include <signal.h> |
66 | #include <stdlib.h> | 66 | #include <stdlib.h> |
67 | #include <string.h> | ||
67 | #include "libbb.h" | 68 | #include "libbb.h" |
68 | 69 | ||
69 | FILE *in_file, *out_file; | 70 | FILE *in_file, *out_file; |
diff --git a/coreutils/rm.c b/coreutils/rm.c index f8e16625c..51c9f4ceb 100644 --- a/coreutils/rm.c +++ b/coreutils/rm.c | |||
@@ -29,6 +29,7 @@ | |||
29 | #include <errno.h> | 29 | #include <errno.h> |
30 | #include <unistd.h> | 30 | #include <unistd.h> |
31 | #include <stdlib.h> | 31 | #include <stdlib.h> |
32 | #include <string.h> | ||
32 | #include <getopt.h> | 33 | #include <getopt.h> |
33 | #include "busybox.h" | 34 | #include "busybox.h" |
34 | 35 | ||
diff --git a/libbb/concat_path_file.c b/libbb/concat_path_file.c index 12a57c837..61efa9c3e 100644 --- a/libbb/concat_path_file.c +++ b/libbb/concat_path_file.c | |||
@@ -6,6 +6,7 @@ | |||
6 | * | 6 | * |
7 | */ | 7 | */ |
8 | 8 | ||
9 | #include <string.h> | ||
9 | #include "libbb.h" | 10 | #include "libbb.h" |
10 | 11 | ||
11 | extern char *concat_path_file(const char *path, const char *filename) | 12 | extern char *concat_path_file(const char *path, const char *filename) |
diff --git a/libbb/copy_file.c b/libbb/copy_file.c index 24bdf9002..c79fbeb14 100644 --- a/libbb/copy_file.c +++ b/libbb/copy_file.c | |||
@@ -29,6 +29,7 @@ | |||
29 | #include <errno.h> | 29 | #include <errno.h> |
30 | #include <dirent.h> | 30 | #include <dirent.h> |
31 | #include <stdlib.h> | 31 | #include <stdlib.h> |
32 | #include <string.h> | ||
32 | 33 | ||
33 | #include "libbb.h" | 34 | #include "libbb.h" |
34 | 35 | ||
diff --git a/libbb/dirname.c b/libbb/dirname.c index 2e89fc17a..cc50f5870 100644 --- a/libbb/dirname.c +++ b/libbb/dirname.c | |||
@@ -19,6 +19,7 @@ | |||
19 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 19 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
20 | */ | 20 | */ |
21 | 21 | ||
22 | #include <string.h> | ||
22 | #include "libbb.h" | 23 | #include "libbb.h" |
23 | 24 | ||
24 | /* Return a string on the heap containing the directory component of PATH. */ | 25 | /* Return a string on the heap containing the directory component of PATH. */ |
diff --git a/libbb/last_char_is.c b/libbb/last_char_is.c index ae2d24bf7..a95e57c35 100644 --- a/libbb/last_char_is.c +++ b/libbb/last_char_is.c | |||
@@ -19,6 +19,7 @@ | |||
19 | * | 19 | * |
20 | */ | 20 | */ |
21 | 21 | ||
22 | #include <string.h> | ||
22 | #include "libbb.h" | 23 | #include "libbb.h" |
23 | 24 | ||
24 | /* Find out if the last character of a string matches the one given Don't | 25 | /* Find out if the last character of a string matches the one given Don't |
diff --git a/libbb/module_syscalls.c b/libbb/module_syscalls.c index 2fb4cd177..36b75fb93 100644 --- a/libbb/module_syscalls.c +++ b/libbb/module_syscalls.c | |||
@@ -28,7 +28,9 @@ | |||
28 | _syscall* defined. */ | 28 | _syscall* defined. */ |
29 | #define __LIBRARY__ | 29 | #define __LIBRARY__ |
30 | #include <sys/syscall.h> | 30 | #include <sys/syscall.h> |
31 | #ifndef __UCLIBC__ | ||
31 | #include <asm/unistd.h> | 32 | #include <asm/unistd.h> |
33 | #endif | ||
32 | #include "libbb.h" | 34 | #include "libbb.h" |
33 | 35 | ||
34 | 36 | ||
diff --git a/libbb/remove_file.c b/libbb/remove_file.c index 23be40429..3b84680c4 100644 --- a/libbb/remove_file.c +++ b/libbb/remove_file.c | |||
@@ -29,6 +29,7 @@ | |||
29 | #include <errno.h> | 29 | #include <errno.h> |
30 | #include <unistd.h> | 30 | #include <unistd.h> |
31 | #include <stdlib.h> | 31 | #include <stdlib.h> |
32 | #include <string.h> | ||
32 | #include <getopt.h> | 33 | #include <getopt.h> |
33 | #include "libbb.h" | 34 | #include "libbb.h" |
34 | 35 | ||
diff --git a/libbb/syscalls.c b/libbb/syscalls.c index f183b26c3..426a14aa1 100644 --- a/libbb/syscalls.c +++ b/libbb/syscalls.c | |||
@@ -30,7 +30,9 @@ | |||
30 | 30 | ||
31 | 31 | ||
32 | #include <sys/syscall.h> | 32 | #include <sys/syscall.h> |
33 | #ifndef __UCLIBC__ | ||
33 | #include <asm/unistd.h> | 34 | #include <asm/unistd.h> |
35 | #endif | ||
34 | #include "libbb.h" | 36 | #include "libbb.h" |
35 | 37 | ||
36 | #if defined(__ia64__) | 38 | #if defined(__ia64__) |
diff --git a/libbb/unzip.c b/libbb/unzip.c index 40b8af427..b85eb9981 100644 --- a/libbb/unzip.c +++ b/libbb/unzip.c | |||
@@ -64,6 +64,7 @@ static char *license_msg[] = { | |||
64 | #include <sys/wait.h> | 64 | #include <sys/wait.h> |
65 | #include <signal.h> | 65 | #include <signal.h> |
66 | #include <stdlib.h> | 66 | #include <stdlib.h> |
67 | #include <string.h> | ||
67 | #include "libbb.h" | 68 | #include "libbb.h" |
68 | 69 | ||
69 | FILE *in_file, *out_file; | 70 | FILE *in_file, *out_file; |
@@ -29,6 +29,7 @@ | |||
29 | #include <errno.h> | 29 | #include <errno.h> |
30 | #include <unistd.h> | 30 | #include <unistd.h> |
31 | #include <stdlib.h> | 31 | #include <stdlib.h> |
32 | #include <string.h> | ||
32 | #include <getopt.h> | 33 | #include <getopt.h> |
33 | #include "busybox.h" | 34 | #include "busybox.h" |
34 | 35 | ||