Skip to content
Snippets Groups Projects
Commit 91168511 authored by Mike Lockwood's avatar Mike Lockwood
Browse files

Stub out ga_init() in android build


Change-Id: I7be8ef7c0425a48500501895c5eabcebcbdf7aa1
Signed-off-by: default avatarMike Lockwood <lockwood@google.com>
parent 1b6cc98e
No related branches found
No related tags found
No related merge requests found
...@@ -48,6 +48,9 @@ static char **groups_byname; ...@@ -48,6 +48,9 @@ static char **groups_byname;
int int
ga_init(const char *user, gid_t base) ga_init(const char *user, gid_t base)
{ {
#ifdef ANDROID
return 0;
#else
gid_t *groups_bygid; gid_t *groups_bygid;
int i, j; int i, j;
struct group *gr; struct group *gr;
...@@ -70,6 +73,7 @@ ga_init(const char *user, gid_t base) ...@@ -70,6 +73,7 @@ ga_init(const char *user, gid_t base)
groups_byname[j++] = xstrdup(gr->gr_name); groups_byname[j++] = xstrdup(gr->gr_name);
xfree(groups_bygid); xfree(groups_bygid);
return (ngroups = j); return (ngroups = j);
#endif
} }
/* /*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment