]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
priv: declare `res_init()` for builds against Android's Bionic
authorVincent Bernat <bernat@luffy.cx>
Tue, 31 Dec 2013 13:40:41 +0000 (14:40 +0100)
committerVincent Bernat <bernat@luffy.cx>
Tue, 31 Dec 2013 13:42:48 +0000 (14:42 +0100)
`res_init()` is present in the C library (as detected by configure) but
no declared in any header.

src/daemon/priv.c

index 703489f0ccc229cb6d805d1d3f9901689b9d5def..a09e4a0c2914c6963b6891e2ad7030d2170c1ab0 100644 (file)
 #  include <resolv.h>
 #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 */