From: Vincent Bernat Date: Tue, 31 Dec 2013 13:40:41 +0000 (+0100) Subject: priv: declare `res_init()` for builds against Android's Bionic X-Git-Tag: 0.7.8~56 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=afe3dabf9eedf05edfe5c455a863971ab53dce42;p=thirdparty%2Flldpd.git 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. --- 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 */