From ed3ef50c233ffb1b50ea0e7382a8e60b86491009 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Sat, 27 Jan 2001 08:24:39 +0000 Subject: Fix header file usage -- there were many unnecessary header files included in busybox.h which slowed compiles. I left only what was needed and then fixed up all the apps to include their own header files. I also fixed naming for pwd.h and grp.h functions. Tested to compile and run with libc5, glibc, and uClibc. -Erik --- utility.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'utility.c') diff --git a/utility.c b/utility.c index 13b8065d3..bf4284c94 100644 --- a/utility.c +++ b/utility.c @@ -50,11 +50,17 @@ #include #include #include +#include #include #include /* for uname(2) */ + #include "pwd_grp/pwd.h" #include "pwd_grp/grp.h" +/* for the _syscall() macros */ +#include +#include + /* Busybox mount uses either /proc/filesystems or /dev/mtab to get the * list of available filesystems used for the -t auto option */ #if defined BB_FEATURE_USE_PROCFS && defined BB_FEATURE_USE_DEVPS_PATCH @@ -1123,6 +1129,7 @@ extern int check_wildcard_match(const char *text, const char *pattern) #if defined BB_DF || defined BB_MTAB +#include /* * Given a block device, find the mount table entry if that block device * is mounted. @@ -1645,6 +1652,7 @@ char *get_last_path_component(char *path) #endif #if defined BB_GREP || defined BB_SED +#include void xregcomp(regex_t *preg, const char *regex, int cflags) { int ret; -- cgit v1.2.3