mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-04 00:13:40 +02:00
Fix compilation on Android with the bionic C library
https://bugzilla.gnome.org/show_bug.cgi?id=689223
This commit is contained in:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user