Fix compilation on Android with the bionic C library

https://bugzilla.gnome.org/show_bug.cgi?id=689223
This commit is contained in:
Sebastian Dröge
2012-11-28 16:55:54 +01:00
parent 5e2cad9de9
commit bcbaf1bef0
11 changed files with 349 additions and 27 deletions

View File

@@ -1098,6 +1098,7 @@ lookup_uid_data (uid_t uid)
if (pwbufp->pw_name != NULL && pwbufp->pw_name[0] != 0)
data->user_name = convert_pwd_string_to_utf8 (pwbufp->pw_name);
#ifndef __BIONIC__
gecos = pwbufp->pw_gecos;
if (gecos)
@@ -1107,6 +1108,7 @@ lookup_uid_data (uid_t uid)
*comma = 0;
data->real_name = convert_pwd_string_to_utf8 (gecos);
}
#endif
}
/* Default fallbacks */