OSDN Git Service

Add some missing includes to kill warnings when building with the default
authorManuel Novoa III <mjn3@codepoet.org>
Fri, 29 Jun 2001 18:59:32 +0000 (18:59 -0000)
committerManuel Novoa III <mjn3@codepoet.org>
Fri, 29 Jun 2001 18:59:32 +0000 (18:59 -0000)
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.

12 files changed:
archival/libunarchive/decompress_unzip.c
archival/libunarchive/unzip.c
coreutils/rm.c
libbb/concat_path_file.c
libbb/copy_file.c
libbb/dirname.c
libbb/last_char_is.c
libbb/module_syscalls.c
libbb/remove_file.c
libbb/syscalls.c
libbb/unzip.c
rm.c

index 40b8af4..b85eb99 100644 (file)
@@ -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;
index 40b8af4..b85eb99 100644 (file)
@@ -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;
index f8e1662..51c9f4c 100644 (file)
@@ -29,6 +29,7 @@
 #include <errno.h>
 #include <unistd.h>
 #include <stdlib.h>
+#include <string.h>
 #include <getopt.h>
 #include "busybox.h"
 
index 12a57c8..61efa9c 100644 (file)
@@ -6,6 +6,7 @@
  *
 */
 
+#include <string.h>
 #include "libbb.h"
 
 extern char *concat_path_file(const char *path, const char *filename)
index 24bdf90..c79fbeb 100644 (file)
@@ -29,6 +29,7 @@
 #include <errno.h>
 #include <dirent.h>
 #include <stdlib.h>
+#include <string.h>
 
 #include "libbb.h"
 
index 2e89fc1..cc50f58 100644 (file)
@@ -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.  */
index ae2d24b..a95e57c 100644 (file)
@@ -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
index 2fb4cd1..36b75fb 100644 (file)
@@ -28,7 +28,9 @@
    _syscall* defined.  */
 #define __LIBRARY__
 #include <sys/syscall.h>
+#ifndef __UCLIBC__
 #include <asm/unistd.h>
+#endif
 #include "libbb.h"
 
 
index 23be404..3b84680 100644 (file)
@@ -29,6 +29,7 @@
 #include <errno.h>
 #include <unistd.h>
 #include <stdlib.h>
+#include <string.h>
 #include <getopt.h>
 #include "libbb.h"
 
index f183b26..426a14a 100644 (file)
@@ -30,7 +30,9 @@
 
 
 #include <sys/syscall.h>
+#ifndef __UCLIBC__
 #include <asm/unistd.h>
+#endif
 #include "libbb.h"
 
 #if defined(__ia64__)
index 40b8af4..b85eb99 100644 (file)
@@ -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 (file)
--- 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"