diff options
author | Eric Andersen | 2001-01-27 08:24:39 +0000 |
---|---|---|
committer | Eric Andersen | 2001-01-27 08:24:39 +0000 |
commit | ed3ef50c233ffb1b50ea0e7382a8e60b86491009 (patch) | |
tree | ecb05ce51890c2cf84ad036543a972ac812320c3 /utility.c | |
parent | ab050f5522e843bf08994685134adaaac7ffd392 (diff) | |
download | busybox-ed3ef50c233ffb1b50ea0e7382a8e60b86491009.zip busybox-ed3ef50c233ffb1b50ea0e7382a8e60b86491009.tar.gz |
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
Diffstat (limited to 'utility.c')
-rw-r--r-- | utility.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -50,11 +50,17 @@ #include <utime.h> #include <unistd.h> #include <ctype.h> +#include <stdlib.h> #include <sys/ioctl.h> #include <sys/utsname.h> /* for uname(2) */ + #include "pwd_grp/pwd.h" #include "pwd_grp/grp.h" +/* for the _syscall() macros */ +#include <sys/syscall.h> +#include <linux/unistd.h> + /* 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 <mntent.h> /* * 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 <regex.h> void xregcomp(regex_t *preg, const char *regex, int cflags) { int ret; |