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:
parent
ff9eee475f
commit
a2949aa217
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -29,6 +29,7 @@
|
||||
#include <errno.h>
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <getopt.h>
|
||||
#include "busybox.h"
|
||||
|
||||
|
@ -6,6 +6,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
#include "libbb.h"
|
||||
|
||||
extern char *concat_path_file(const char *path, const char *filename)
|
||||
|
@ -29,6 +29,7 @@
|
||||
#include <errno.h>
|
||||
#include <dirent.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "libbb.h"
|
||||
|
||||
|
@ -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. */
|
||||
|
@ -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
|
||||
|
@ -28,7 +28,9 @@
|
||||
_syscall* defined. */
|
||||
#define __LIBRARY__
|
||||
#include <sys/syscall.h>
|
||||
#ifndef __UCLIBC__
|
||||
#include <asm/unistd.h>
|
||||
#endif
|
||||
#include "libbb.h"
|
||||
|
||||
|
||||
|
@ -29,6 +29,7 @@
|
||||
#include <errno.h>
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <getopt.h>
|
||||
#include "libbb.h"
|
||||
|
||||
|
@ -30,7 +30,9 @@
|
||||
|
||||
|
||||
#include <sys/syscall.h>
|
||||
#ifndef __UCLIBC__
|
||||
#include <asm/unistd.h>
|
||||
#endif
|
||||
#include "libbb.h"
|
||||
|
||||
#if defined(__ia64__)
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user