diff lib/getugroups.c @ 17906:d86e349ad92d

getugroups: Fix Android build * lib/getugroups.c: Don't reference unsupported {get,set,end}grent functions.
author Kevin Cernekee <cernekee@google.com>
date Wed, 11 Feb 2015 15:22:53 -0800
parents ab58d4870664
children
line wrap: on
line diff
--- a/lib/getugroups.c
+++ b/lib/getugroups.c
@@ -27,10 +27,13 @@
 #include <string.h>
 #include <unistd.h>
 
-#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 <grp.h> but it isn't actually
+   defined in the library.  */
 
 int
 getugroups (int maxcount _GL_UNUSED,