From 1ac83339e328ff70e52ce50191f4e9924fdad8b2 Mon Sep 17 00:00:00 2001 From: Ben Greear Date: Fri, 30 Jul 2010 00:10:16 -0700 Subject: [PATCH] local-bind-fixup: Fix inet_pton warning. Conditionally include for inet_pton headers. Signed-off-by: Ben Greear --- ares_options.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ares_options.c b/ares_options.c index 1de36c48..26dc6789 100644 --- a/ares_options.c +++ b/ares_options.c @@ -23,6 +23,10 @@ #include "ares_private.h" #include "inet_net_pton.h" +/* For inet_pton */ +#ifdef HAVE_ARPA_INET_H +# include +#endif int ares_get_servers(ares_channel channel, struct ares_addr_node **servers)