Declare res_init() for builds against Android's Bionic

res_init() exists in the C library here and as such is detected
by configure, but it is not declared in any header.
This commit is contained in:
Sebastian Dröge 2013-05-06 16:06:48 +02:00
parent f4a1882341
commit 25fa94eb82

View File

@ -232,6 +232,10 @@ g_resolver_set_default (GResolver *resolver)
default_resolver = g_object_ref (resolver);
}
/* Bionic has res_init() but it's not in any header */
#ifdef __BIONIC__
int res_init (void);
#endif
static void
g_resolver_maybe_reload (GResolver *resolver)