From 25fa94eb82a8b55fd9279f5faa67c02c4738b8d8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 6 May 2013 16:06:48 +0200 Subject: [PATCH] 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. --- gio/gresolver.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gio/gresolver.c b/gio/gresolver.c index 26d334a..6aad517 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) -- 2.7.4