--- a/src/pluto/adns.c +++ b/src/pluto/adns.c @@ -179,7 +179,7 @@ write_pipe(int fd, const unsigned char * res_query(dname, class, type, answer, anslen) # define res_nclose(statp) res_close() -static struct __res_state *statp = &_res; +#define statp ((struct __res_state *)(&_res)) #else /* !OLD_RESOLVER */