diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2012-01-06 16:23:18 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2012-01-06 16:23:18 +0100 |
commit | 6b64a269766ace40c56826738de446537add37de (patch) | |
tree | e0adf6c71ac0f95f0fa973777f59596b868bba4b /include/platform.h | |
parent | ba6587295053f369d6e2e9b788f42b49e1baced5 (diff) | |
download | busybox-w32-6b64a269766ace40c56826738de446537add37de.tar.gz busybox-w32-6b64a269766ace40c56826738de446537add37de.tar.bz2 busybox-w32-6b64a269766ace40c56826738de446537add37de.zip |
platform.h: define endgrent() and endpwent() as no-ops on Android
Surprisingly, bionic libc seems to lack these functions.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include/platform.h')
-rw-r--r-- | include/platform.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/platform.h b/include/platform.h index d79cc97e5..7451fb757 100644 --- a/include/platform.h +++ b/include/platform.h | |||
@@ -334,6 +334,11 @@ 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 | |||
337 | 342 | ||
338 | /* ---- Who misses what? ------------------------------------ */ | 343 | /* ---- Who misses what? ------------------------------------ */ |
339 | 344 | ||