mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 23:16:14 +01:00
Merge branch 'wip/jehan/android-master-v3' into 'master'
Wip/jehan/android master v3 See merge request GNOME/glib!93
This commit is contained in:
commit
73b229ab3a
@ -1123,8 +1123,10 @@ lookup_uid_data (uid_t uid)
|
||||
char buffer[4096];
|
||||
struct passwd pwbuf;
|
||||
struct passwd *pwbufp;
|
||||
#ifndef __BIONIC__
|
||||
char *gecos, *comma;
|
||||
|
||||
#endif
|
||||
|
||||
if (uid_cache == NULL)
|
||||
uid_cache = g_hash_table_new_full (NULL, NULL, NULL, (GDestroyNotify)uid_data_free);
|
||||
|
||||
@ -1209,10 +1211,12 @@ static char *
|
||||
lookup_gid_name (gid_t gid)
|
||||
{
|
||||
char *name;
|
||||
#if defined (HAVE_GETGRGID_R)
|
||||
char buffer[4096];
|
||||
struct group gbuf;
|
||||
#endif
|
||||
struct group *gbufp;
|
||||
|
||||
|
||||
if (gid_cache == NULL)
|
||||
gid_cache = g_hash_table_new_full (NULL, NULL, NULL, (GDestroyNotify)g_free);
|
||||
|
||||
|
@ -803,7 +803,9 @@ free_records (GList *records)
|
||||
|
||||
#if defined(G_OS_UNIX)
|
||||
#ifdef __BIONIC__
|
||||
#ifndef C_IN
|
||||
#define C_IN 1
|
||||
#endif
|
||||
int res_query(const char *, int, int, u_char *, int);
|
||||
#endif
|
||||
#endif
|
||||
|
@ -66,7 +66,9 @@ enum
|
||||
PROP_ADDRESS_TYPE
|
||||
};
|
||||
|
||||
#ifndef UNIX_PATH_MAX
|
||||
#define UNIX_PATH_MAX sizeof (((struct sockaddr_un *) 0)->sun_path)
|
||||
#endif
|
||||
|
||||
struct _GUnixSocketAddressPrivate
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user