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 <vda.linux@googlemail.com>
This commit is contained in:
parent
acdb0041b3
commit
a76dd50ce1
@ -51,6 +51,12 @@
|
|||||||
#include <termios.h>
|
#include <termios.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <sys/param.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
|
#ifdef HAVE_MNTENT_H
|
||||||
# include <mntent.h>
|
# include <mntent.h>
|
||||||
#endif
|
#endif
|
||||||
@ -80,8 +86,6 @@
|
|||||||
#ifdef DMALLOC
|
#ifdef DMALLOC
|
||||||
# include <dmalloc.h>
|
# include <dmalloc.h>
|
||||||
#endif
|
#endif
|
||||||
#include <pwd.h>
|
|
||||||
#include <grp.h>
|
|
||||||
#if ENABLE_FEATURE_SHADOWPASSWDS
|
#if ENABLE_FEATURE_SHADOWPASSWDS
|
||||||
# if !ENABLE_USE_BB_SHADOW
|
# if !ENABLE_USE_BB_SHADOW
|
||||||
/* If using busybox's shadow implementation, do not include the shadow.h
|
/* If using busybox's shadow implementation, do not include the shadow.h
|
||||||
|
@ -334,11 +334,6 @@ typedef unsigned smalluint;
|
|||||||
# define MAXSYMLINKS SYMLOOP_MAX
|
# define MAXSYMLINKS SYMLOOP_MAX
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(ANDROID) || defined(__ANDROID__)
|
|
||||||
# define endpwent() ((void)0)
|
|
||||||
# define endgrent() ((void)0)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
/* ---- Who misses what? ------------------------------------ */
|
/* ---- Who misses what? ------------------------------------ */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user