diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2013-05-06 16:06:48 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2013-05-06 16:06:48 +0200 |
commit | 25fa94eb82a8b55fd9279f5faa67c02c4738b8d8 (patch) | |
tree | edc395a596224d365fd9e6254ce1eb512715a7b9 /gio/gresolver.c | |
parent | f4a188234105cb363aecaefd31e06e1f976200c0 (diff) | |
download | glib-25fa94eb82a8b55fd9279f5faa67c02c4738b8d8.tar.gz |
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.
Diffstat (limited to 'gio/gresolver.c')
-rw-r--r-- | gio/gresolver.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gio/gresolver.c b/gio/gresolver.c index 26d334a10..6aad51791 100644 --- a/gio/gresolver.c +++ b/gio/gresolver.c @@ -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) |