Move Adroid endgrent() and endpwent() NOPS to libbb.h
authorDenys Vlasenko <vda.linux@googlemail.com>
Sun, 8 Jan 2012 15:11:38 +0000 (16:11 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 8 Jan 2012 15:11:38 +0000 (16:11 +0100)
They should be after includes of pwd.h and grp.h

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
include/libbb.h
include/platform.h

index 22d2a5b2069f3e89aa6020003f7c65bea4c4236b..5e957fbf88dfd537d617bc95c5aec8a45d582398 100644 (file)
 #include <termios.h>
 #include <time.h>
 #include <sys/param.h>
+#include <pwd.h>
+#include <grp.h>
+#if defined(ANDROID) || defined(__ANDROID__)
+# define endpwent() ((void)0)
+# define endgrent() ((void)0)
+#endif
 #ifdef HAVE_MNTENT_H
 # include <mntent.h>
 #endif
@@ -80,8 +86,6 @@
 #ifdef DMALLOC
 # include <dmalloc.h>
 #endif
-#include <pwd.h>
-#include <grp.h>
 #if ENABLE_FEATURE_SHADOWPASSWDS
 # if !ENABLE_USE_BB_SHADOW
 /* If using busybox's shadow implementation, do not include the shadow.h
index 7451fb7572224bb63b101453c28087e3a5bc0ea1..d79cc97e5a9bb843cfa3345219c6fbafee8cc6c9 100644 (file)
@@ -334,11 +334,6 @@ typedef unsigned smalluint;
 # define MAXSYMLINKS SYMLOOP_MAX
 #endif
 
-#if defined(ANDROID) || defined(__ANDROID__)
-# define endpwent() ((void)0)
-# define endgrent() ((void)0)
-#endif
-
 
 /* ---- Who misses what? ------------------------------------ */