mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-10-15 01:50:06 +02:00
Revert "Fix compilation on Android with the bionic C library"
This reverts commit cb0ed84d40
.
It wasn't meant to be pushed yet.
This commit is contained in:
@@ -830,19 +830,14 @@ g_get_any_init_do (void)
|
||||
|
||||
if (!pw)
|
||||
{
|
||||
#ifndef __BIONIC__
|
||||
setpwent ();
|
||||
#endif
|
||||
pw = getpwuid (getuid ());
|
||||
#ifndef __BIONIC__
|
||||
endpwent ();
|
||||
#endif
|
||||
}
|
||||
if (pw)
|
||||
{
|
||||
g_user_name = g_strdup (pw->pw_name);
|
||||
|
||||
#ifndef __BIONIC__
|
||||
if (pw->pw_gecos && *pw->pw_gecos != '\0')
|
||||
{
|
||||
gchar **gecos_fields;
|
||||
@@ -856,7 +851,6 @@ g_get_any_init_do (void)
|
||||
g_strfreev (gecos_fields);
|
||||
g_strfreev (name_parts);
|
||||
}
|
||||
#endif
|
||||
|
||||
if (!g_home_dir)
|
||||
g_home_dir = g_strdup (pw->pw_dir);
|
||||
|
Reference in New Issue
Block a user