diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2012-01-08 16:11:38 +0100 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2012-01-08 16:11:38 +0100 |
| commit | a76dd50ce11eda47f5f5cba1cf189833f7126e12 (patch) | |
| tree | 05352c5fe5b93ade677f4480794872ab5a37f3f9 /include | |
| parent | acdb0041b35e27cd03c43b25410eda5151acd2c1 (diff) | |
| download | busybox-w32-a76dd50ce11eda47f5f5cba1cf189833f7126e12.tar.gz busybox-w32-a76dd50ce11eda47f5f5cba1cf189833f7126e12.tar.bz2 busybox-w32-a76dd50ce11eda47f5f5cba1cf189833f7126e12.zip | |
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>
Diffstat (limited to 'include')
| -rw-r--r-- | include/libbb.h | 8 | ||||
| -rw-r--r-- | include/platform.h | 5 |
2 files changed, 6 insertions, 7 deletions
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 @@ | |||
| 51 | #include <termios.h> | 51 | #include <termios.h> |
| 52 | #include <time.h> | 52 | #include <time.h> |
| 53 | #include <sys/param.h> | 53 | #include <sys/param.h> |
| 54 | #include <pwd.h> | ||
| 55 | #include <grp.h> | ||
| 56 | #if defined(ANDROID) || defined(__ANDROID__) | ||
| 57 | # define endpwent() ((void)0) | ||
| 58 | # define endgrent() ((void)0) | ||
| 59 | #endif | ||
| 54 | #ifdef HAVE_MNTENT_H | 60 | #ifdef HAVE_MNTENT_H |
| 55 | # include <mntent.h> | 61 | # include <mntent.h> |
| 56 | #endif | 62 | #endif |
| @@ -80,8 +86,6 @@ | |||
| 80 | #ifdef DMALLOC | 86 | #ifdef DMALLOC |
| 81 | # include <dmalloc.h> | 87 | # include <dmalloc.h> |
| 82 | #endif | 88 | #endif |
| 83 | #include <pwd.h> | ||
| 84 | #include <grp.h> | ||
| 85 | #if ENABLE_FEATURE_SHADOWPASSWDS | 89 | #if ENABLE_FEATURE_SHADOWPASSWDS |
| 86 | # if !ENABLE_USE_BB_SHADOW | 90 | # if !ENABLE_USE_BB_SHADOW |
| 87 | /* If using busybox's shadow implementation, do not include the shadow.h | 91 | /* If using busybox's shadow implementation, do not include the shadow.h |
diff --git a/include/platform.h b/include/platform.h index 7451fb757..d79cc97e5 100644 --- a/include/platform.h +++ b/include/platform.h | |||
| @@ -334,11 +334,6 @@ typedef unsigned smalluint; | |||
| 334 | # define MAXSYMLINKS SYMLOOP_MAX | 334 | # define MAXSYMLINKS SYMLOOP_MAX |
| 335 | #endif | 335 | #endif |
| 336 | 336 | ||
| 337 | #if defined(ANDROID) || defined(__ANDROID__) | ||
| 338 | # define endpwent() ((void)0) | ||
| 339 | # define endgrent() ((void)0) | ||
| 340 | #endif | ||
| 341 | |||
| 342 | 337 | ||
| 343 | /* ---- Who misses what? ------------------------------------ */ | 338 | /* ---- Who misses what? ------------------------------------ */ |
| 344 | 339 | ||
