Move include <shadow.h> close to pwd.h and grp.h includes
authorDenys Vlasenko <vda.linux@googlemail.com>
Sun, 8 Jan 2012 15:13:55 +0000 (16:13 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 8 Jan 2012 15:13:55 +0000 (16:13 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
include/libbb.h

index 5e957fbf88dfd537d617bc95c5aec8a45d582398..0c266dc53795114f06805a743638095b4e2f2ffe 100644 (file)
 #include <sys/param.h>
 #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
+ * header as the toolchain may not provide it at all.
+ */
+#  include <shadow.h>
+# endif
+#endif
 #if defined(ANDROID) || defined(__ANDROID__)
 # define endpwent() ((void)0)
 # define endgrent() ((void)0)
 #ifdef DMALLOC
 # include <dmalloc.h>
 #endif
-#if ENABLE_FEATURE_SHADOWPASSWDS
-# if !ENABLE_USE_BB_SHADOW
-/* If using busybox's shadow implementation, do not include the shadow.h
- * header as the toolchain may not provide it at all.
- */
-#  include <shadow.h>
-# endif
-#endif
 /* Just in case libc doesn't define some of these... */
 #ifndef _PATH_PASSWD
 #define _PATH_PASSWD  "/etc/passwd"