summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--archival/libunarchive/decompress_unzip.c1
-rw-r--r--archival/libunarchive/unzip.c1
-rw-r--r--coreutils/rm.c1
-rw-r--r--libbb/concat_path_file.c1
-rw-r--r--libbb/copy_file.c1
-rw-r--r--libbb/dirname.c1
-rw-r--r--libbb/last_char_is.c1
-rw-r--r--libbb/module_syscalls.c2
-rw-r--r--libbb/remove_file.c1
-rw-r--r--libbb/syscalls.c2
-rw-r--r--libbb/unzip.c1
-rw-r--r--rm.c1
12 files changed, 14 insertions, 0 deletions
diff --git a/archival/libunarchive/decompress_unzip.c b/archival/libunarchive/decompress_unzip.c
index 40b8af4..b85eb99 100644
--- a/archival/libunarchive/decompress_unzip.c
+++ b/archival/libunarchive/decompress_unzip.c
@@ -64,6 +64,7 @@ static char *license_msg[] = {
#include <sys/wait.h>
#include <signal.h>
#include <stdlib.h>
+#include <string.h>
#include "libbb.h"
FILE *in_file, *out_file;
diff --git a/archival/libunarchive/unzip.c b/archival/libunarchive/unzip.c
index 40b8af4..b85eb99 100644
--- a/archival/libunarchive/unzip.c
+++ b/archival/libunarchive/unzip.c
@@ -64,6 +64,7 @@ static char *license_msg[] = {
#include <sys/wait.h>
#include <signal.h>
#include <stdlib.h>
+#include <string.h>
#include "libbb.h"
FILE *in_file, *out_file;
diff --git a/coreutils/rm.c b/coreutils/rm.c
index f8e1662..51c9f4c 100644
--- a/coreutils/rm.c
+++ b/coreutils/rm.c
@@ -29,6 +29,7 @@
#include <errno.h>
#include <unistd.h>
#include <stdlib.h>
+#include <string.h>
#include <getopt.h>
#include "busybox.h"
diff --git a/libbb/concat_path_file.c b/libbb/concat_path_file.c
index 12a57c8..61efa9c 100644
--- a/libbb/concat_path_file.c
+++ b/libbb/concat_path_file.c
@@ -6,6 +6,7 @@
*
*/
+#include <string.h>
#include "libbb.h"
extern char *concat_path_file(const char *path, const char *filename)
diff --git a/libbb/copy_file.c b/libbb/copy_file.c
index 24bdf90..c79fbeb 100644
--- a/libbb/copy_file.c
+++ b/libbb/copy_file.c
@@ -29,6 +29,7 @@
#include <errno.h>
#include <dirent.h>
#include <stdlib.h>
+#include <string.h>
#include "libbb.h"
diff --git a/libbb/dirname.c b/libbb/dirname.c
index 2e89fc1..cc50f58 100644
--- a/libbb/dirname.c
+++ b/libbb/dirname.c
@@ -19,6 +19,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#include <string.h>
#include "libbb.h"
/* 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 ae2d24b..a95e57c 100644
--- a/libbb/last_char_is.c
+++ b/libbb/last_char_is.c
@@ -19,6 +19,7 @@
*
*/
+#include <string.h>
#include "libbb.h"
/* 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 2fb4cd1..36b75fb 100644
--- a/libbb/module_syscalls.c
+++ b/libbb/module_syscalls.c
@@ -28,7 +28,9 @@
_syscall* defined. */
#define __LIBRARY__
#include <sys/syscall.h>
+#ifndef __UCLIBC__
#include <asm/unistd.h>
+#endif
#include "libbb.h"
diff --git a/libbb/remove_file.c b/libbb/remove_file.c
index 23be404..3b84680 100644
--- a/libbb/remove_file.c
+++ b/libbb/remove_file.c
@@ -29,6 +29,7 @@
#include <errno.h>
#include <unistd.h>
#include <stdlib.h>
+#include <string.h>
#include <getopt.h>
#include "libbb.h"
diff --git a/libbb/syscalls.c b/libbb/syscalls.c
index f183b26..426a14a 100644
--- a/libbb/syscalls.c
+++ b/libbb/syscalls.c
@@ -30,7 +30,9 @@
#include <sys/syscall.h>
+#ifndef __UCLIBC__
#include <asm/unistd.h>
+#endif
#include "libbb.h"
#if defined(__ia64__)
diff --git a/libbb/unzip.c b/libbb/unzip.c
index 40b8af4..b85eb99 100644
--- a/libbb/unzip.c
+++ b/libbb/unzip.c
@@ -64,6 +64,7 @@ static char *license_msg[] = {
#include <sys/wait.h>
#include <signal.h>
#include <stdlib.h>
+#include <string.h>
#include "libbb.h"
FILE *in_file, *out_file;
diff --git a/rm.c b/rm.c
index f8e1662..51c9f4c 100644
--- a/rm.c
+++ b/rm.c
@@ -29,6 +29,7 @@
#include <errno.h>
#include <unistd.h>
#include <stdlib.h>
+#include <string.h>
#include <getopt.h>
#include "busybox.h"