[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 05/11] getugroups: Fix Android build
From: |
Kevin Cernekee |
Subject: |
[PATCH 05/11] getugroups: Fix Android build |
Date: |
Wed, 11 Feb 2015 15:22:53 -0800 |
* 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 6d8bffa4160f..bbcc513261eb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -31,6 +31,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 <address@hidden>
uniname/unimame-tests: don't link with -lunistring
diff --git a/lib/getugroups.c b/lib/getugroups.c
index b6e602863c70..7c6d34c901f0 100644
--- 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,
--
2.2.0.rc0.207.ga3a616c
- [PATCH 00/11] Android compatibility, Kevin Cernekee, 2015/02/11
- [PATCH 01/11] Fix FILE struct compatibility with Android API level >= 21, Kevin Cernekee, 2015/02/11
- [PATCH 02/11] Assume unbroken ungetc() on Android, Kevin Cernekee, 2015/02/11
- [PATCH 03/11] getdtablesize: Fix Android build, Kevin Cernekee, 2015/02/11
- [PATCH 04/11] localename: Fix Android build, Kevin Cernekee, 2015/02/11
- [PATCH 06/11] euidaccess: Fix Android build, Kevin Cernekee, 2015/02/11
- [PATCH 08/11] net_if: Handle content-free <net/if.h> system headers, Kevin Cernekee, 2015/02/11
- [PATCH 07/11] linkat_nofollow: Add fallback case for cross compiling, Kevin Cernekee, 2015/02/11
- [PATCH 05/11] getugroups: Fix Android build,
Kevin Cernekee <=
- [PATCH 09/11] signal_h: Fix Android build, Kevin Cernekee, 2015/02/11
- [PATCH 11/11] getdtablesize: Fix RLIMIT_NOFILE fallback case, Kevin Cernekee, 2015/02/11
- [PATCH 10/11] duplocale: Fix Android build of duplocale-tests, Kevin Cernekee, 2015/02/11
- Re: [PATCH 00/11] Android compatibility, Paul Eggert, 2015/02/11