From a76dd50ce11eda47f5f5cba1cf189833f7126e12 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sun, 8 Jan 2012 16:11:38 +0100 Subject: Move Adroid endgrent() and endpwent() NOPS to libbb.h They should be after includes of pwd.h and grp.h Signed-off-by: Denys Vlasenko --- include/libbb.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'include/libbb.h') diff --git a/include/libbb.h b/include/libbb.h index 22d2a5b20..5e957fbf8 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -51,6 +51,12 @@ #include #include #include +#include +#include +#if defined(ANDROID) || defined(__ANDROID__) +# define endpwent() ((void)0) +# define endgrent() ((void)0) +#endif #ifdef HAVE_MNTENT_H # include #endif @@ -80,8 +86,6 @@ #ifdef DMALLOC # include #endif -#include -#include #if ENABLE_FEATURE_SHADOWPASSWDS # if !ENABLE_USE_BB_SHADOW /* If using busybox's shadow implementation, do not include the shadow.h -- cgit v1.2.3