From afe3dabf9eedf05edfe5c455a863971ab53dce42 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Tue, 31 Dec 2013 14:40:41 +0100 Subject: [PATCH] priv: declare `res_init()` for builds against Android's Bionic `res_init()` is present in the C library (as detected by configure) but no declared in any header. --- src/daemon/priv.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/daemon/priv.c b/src/daemon/priv.c index 703489f0..a09e4a0c 100644 --- a/src/daemon/priv.c +++ b/src/daemon/priv.c @@ -62,6 +62,11 @@ # include #endif +/* Bionic has res_init() but it's not in any header */ +#if defined HAVE_RES_INIT && defined __BIONIC__ +int res_init (void); +#endif + static int monitored = -1; /* Child */ /* Proxies */ -- 2.39.5