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.
This commit is contained in:
Manuel Novoa III 2001-06-29 18:59:32 +00:00
parent ff9eee475f
commit a2949aa217
12 changed files with 14 additions and 0 deletions

View 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;

View 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;

View File

@ -29,6 +29,7 @@
#include <errno.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <getopt.h>
#include "busybox.h"

View File

@ -6,6 +6,7 @@
*
*/
#include <string.h>
#include "libbb.h"
extern char *concat_path_file(const char *path, const char *filename)

View File

@ -29,6 +29,7 @@
#include <errno.h>
#include <dirent.h>
#include <stdlib.h>
#include <string.h>
#include "libbb.h"

View 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. */

View 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

View File

@ -28,7 +28,9 @@
_syscall* defined. */
#define __LIBRARY__
#include <sys/syscall.h>
#ifndef __UCLIBC__
#include <asm/unistd.h>
#endif
#include "libbb.h"

View File

@ -29,6 +29,7 @@
#include <errno.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <getopt.h>
#include "libbb.h"

View File

@ -30,7 +30,9 @@
#include <sys/syscall.h>
#ifndef __UCLIBC__
#include <asm/unistd.h>
#endif
#include "libbb.h"
#if defined(__ia64__)

View 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;

1
rm.c
View File

@ -29,6 +29,7 @@
#include <errno.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <getopt.h>
#include "busybox.h"