From 30ea03fe4fa5c64960d2a308d234515a12858155 Mon Sep 17 00:00:00 2001 From: Kevin Cernekee Date: Wed, 11 Feb 2015 15:22:53 -0800 Subject: [PATCH] getugroups: Fix Android build * lib/getugroups.c: Don't reference unsupported {get,set,end}grent functions. --- ChangeLog | 4 ++++ lib/getugroups.c | 7 +++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 68b840bfba..d3e368a02f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -41,6 +41,10 @@ localename: Fix Android build * modules/localename (Depends-on): Add langinfo. + getugroups: Fix Android build + * lib/getugroups.c: Don't reference unsupported {get,set,end}grent + functions. + 2015-02-08 Daiki Ueno uniname/unimame-tests: don't link with -lunistring diff --git a/lib/getugroups.c b/lib/getugroups.c index b6e602863c..7c6d34c901 100644 --- a/lib/getugroups.c +++ b/lib/getugroups.c @@ -27,10 +27,13 @@ #include #include -#if !HAVE_GRP_H +#if !HAVE_GRP_H || defined __ANDROID__ /* Mingw lacks all things related to group management. The best we - can do is fail with ENOSYS. */ + can do is fail with ENOSYS. + + Bionic declares e.g. getgrent() in but it isn't actually + defined in the library. */ int getugroups (int maxcount _GL_UNUSED, -- 2.39.5