From 4f9ad057ca1391dac5d3ae3b35563185abae36e3 Mon Sep 17 00:00:00 2001 From: Jeffrey Hutzelman Date: Mon, 18 Feb 2013 14:20:12 -0500 Subject: server: c-ares support Add the bits we need to be able to use c-ares for DNS operations in the server. This handles initialization and making sure the resolver's sockets and timeouts are considered in the main loop. --- server/zserver.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'server/zserver.h') diff --git a/server/zserver.h b/server/zserver.h index 6ded4a4..822a90c 100644 --- a/server/zserver.h +++ b/server/zserver.h @@ -15,6 +15,9 @@ #include #include +#ifdef HAVE_ARES +#include +#endif #include @@ -423,6 +426,9 @@ extern int srv_socket; /* dgram sockets for clients and other servers */ extern int bdump_socket; /* brain dump socket (closed most of the time) */ +#ifdef HAVE_ARES +extern ares_channel achannel; +#endif extern fd_set interesting; /* the file descrips we are listening to right now */ -- cgit v1.2.3