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:
Sebastian Dröge
2012-11-28 16:55:12 +01:00
parent 97385dbbe8
commit c9affa778e
8 changed files with 2 additions and 182 deletions

View File

@@ -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);