diff --git a/include/libbb.h b/include/libbb.h index 82484f911..d05ac2976 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -20,6 +20,7 @@ #include #include #include +#include #if defined __UCLIBC__ /* TODO: and glibc? */ /* use inlined versions of these: */ # define sigfillset(s) __sigfillset(s) @@ -106,7 +107,11 @@ # define updwtmpx updwtmp # define _PATH_UTMPX _PATH_UTMP # else +# include # include +# if defined _PATH_UTMP && !defined _PATH_UTMPX +# define _PATH_UTMPX _PATH_UTMP +# endif # endif #endif #if ENABLE_LOCALE_SUPPORT diff --git a/init/init.c b/init/init.c index 80c5d0f74..2040a59e8 100644 --- a/init/init.c +++ b/init/init.c @@ -112,7 +112,6 @@ #include "libbb.h" #include -#include #include #ifdef __linux__ # include diff --git a/shell/ash.c b/shell/ash.c index daec975c5..b5a2d961d 100644 --- a/shell/ash.c +++ b/shell/ash.c @@ -37,7 +37,6 @@ #define JOBS ENABLE_ASH_JOB_CONTROL -#include #include #include #include diff --git a/sysklogd/klogd.c b/sysklogd/klogd.c index ca8b848bd..03d65b37f 100644 --- a/sysklogd/klogd.c +++ b/sysklogd/klogd.c @@ -98,7 +98,6 @@ static void klogd_close(void) #else -# include # ifndef _PATH_KLOG # ifdef __GNU__ # define _PATH_KLOG "/dev/klog"