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 --- modutils/insmod.c | 7 +++++-- modutils/rmmod.c | 3 +++ 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'modutils') diff --git a/modutils/insmod.c b/modutils/insmod.c index 6ac2dcda4..b82728a26 100644 --- a/modutils/insmod.c +++ b/modutils/insmod.c @@ -46,8 +46,11 @@ #include #include #include +#include #include #include +#include +#include //---------------------------------------------------------------------------- //--------modutils module.h, lines 45-242 @@ -78,7 +81,7 @@ #ifndef MODUTILS_MODULE_H static const int MODUTILS_MODULE_H = 1; -#ident "$Id: insmod.c,v 1.42 2001/01/26 02:23:57 andersen Exp $" +#ident "$Id: insmod.c,v 1.43 2001/01/27 08:24:37 andersen Exp $" /* This file contains the structures used by the 2.0 and 2.1 kernels. We do not use the kernel headers directly because we do not wish @@ -284,7 +287,7 @@ int delete_module(const char *); #ifndef MODUTILS_OBJ_H static const int MODUTILS_OBJ_H = 1; -#ident "$Id: insmod.c,v 1.42 2001/01/26 02:23:57 andersen Exp $" +#ident "$Id: insmod.c,v 1.43 2001/01/27 08:24:37 andersen Exp $" /* The relocatable object is manipulated using elfin types. */ diff --git a/modutils/rmmod.c b/modutils/rmmod.c index 52adc7bcd..ff08c4ca0 100644 --- a/modutils/rmmod.c +++ b/modutils/rmmod.c @@ -25,6 +25,9 @@ #include #include #include +#include +#include +#include #define __LIBRARY__ -- cgit v1.2.3