From 6b64a269766ace40c56826738de446537add37de Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Fri, 6 Jan 2012 16:23:18 +0100 Subject: platform.h: define endgrent() and endpwent() as no-ops on Android Surprisingly, bionic libc seems to lack these functions. Signed-off-by: Denys Vlasenko --- include/platform.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/platform.h') 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; # define MAXSYMLINKS SYMLOOP_MAX #endif +#if defined(ANDROID) || defined(__ANDROID__) +# define endpwent() ((void)0) +# define endgrent() ((void)0) +#endif + /* ---- Who misses what? ------------------------------------ */ -- cgit v1.2.3