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 40b8af427d2f3761226df63f03c2512c52e979cb..b85eb9981c5cab8ee50f2052a4482c7f13a0e17f 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 40b8af427d2f3761226df63f03c2512c52e979cb..b85eb9981c5cab8ee50f2052a4482c7f13a0e17f 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 f8e16625c9063fd90596168a6e99637fd8530168..51c9f4ceb5363f71919be999637198bc8a8b5771 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 12a57c837391ba387312641de3c0c19e72370671..61efa9c3e16ac7ab13fdbe3f8ec0125c727425e1 100644 (file)
@@ -6,6 +6,7 @@
  *
 */
 
+#include <string.h>
 #include "libbb.h"
 
 extern char *concat_path_file(const char *path, const char *filename)
index 24bdf9002f99b702a02cd27d6caa0a3663e7e772..c79fbeb14912fb8461ab0b1958896239c47846b1 100644 (file)
@@ -29,6 +29,7 @@
 #include <errno.h>
 #include <dirent.h>
 #include <stdlib.h>
+#include <string.h>
 
 #include "libbb.h"
 
index 2e89fc17a11e7c531cad68a6dba6ab89fb879d86..cc50f5870d6ae4c81cc29616166e4d22e54426f5 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 ae2d24bf71894d479778cded3ed7643729f661bb..a95e57c3564e6bcf8cf63c16c8e7709562b57deb 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 2fb4cd1775affca886fdd7a84e495d0f92cb816e..36b75fb934a40015ca9b51cb049ba85dfa941357 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 23be40429333231f25e986035445ffd9c1935c13..3b84680c4d03647903bf83d24fd186ca5940ce5c 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 f183b26c3a4c5744bdee10166f2dda2e5d92bd44..426a14aa18999c7e79e157433829fbf32887a5b8 100644 (file)
@@ -30,7 +30,9 @@
 
 
 #include <sys/syscall.h>
+#ifndef __UCLIBC__
 #include <asm/unistd.h>
+#endif
 #include "libbb.h"
 
 #if defined(__ia64__)
index 40b8af427d2f3761226df63f03c2512c52e979cb..b85eb9981c5cab8ee50f2052a4482c7f13a0e17f 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 f8e16625c9063fd90596168a6e99637fd8530168..51c9f4ceb5363f71919be999637198bc8a8b5771 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"