Stub out ga_init() in android build
Change-Id: I7be8ef7c0425a48500501895c5eabcebcbdf7aa1
Signed-off-by: Mike Lockwood <lockwood@google.com>
diff --git a/groupaccess.c b/groupaccess.c
index 2381aeb..7564ecb 100644
--- a/groupaccess.c
+++ b/groupaccess.c
@@ -48,6 +48,9 @@
int
ga_init(const char *user, gid_t base)
{
+#ifdef ANDROID
+ return 0;
+#else
gid_t *groups_bygid;
int i, j;
struct group *gr;
@@ -70,6 +73,7 @@
groups_byname[j++] = xstrdup(gr->gr_name);
xfree(groups_bygid);
return (ngroups = j);
+#endif
}
/*