]> Savannah Git Hosting - gnulib.git/commitdiff
getugroups: Fix Android build
authorKevin Cernekee <cernekee@google.com>
Wed, 11 Feb 2015 23:22:53 +0000 (15:22 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 11 Feb 2015 23:47:45 +0000 (15:47 -0800)
* lib/getugroups.c: Don't reference unsupported {get,set,end}grent
functions.

ChangeLog
lib/getugroups.c

index 68b840bfbac851b9cd153be6aeb1567d21902fc0..d3e368a02ffdeac0a9b6e5d50b61c968e43904d6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
        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  <ueno@gnu.org>
 
        uniname/unimame-tests: don't link with -lunistring
index b6e602863c7036cd6c88690cd5036ce45ed209aa..7c6d34c901f0b5556277d10523cfcbe05a48ce2f 100644 (file)
 #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,