Skip to content
Browse files

local-bind-fixup: Fix inet_pton warning.

Conditionally include <arpa/inet.h> for inet_pton
headers.

Signed-off-by: Ben Greear <greearb@candelatech.com>
  • Loading branch information...
1 parent 45557a1 commit 1ac83339e328ff70e52ce50191f4e9924fdad8b2 @greearb greearb committed Jul 30, 2010
Showing with 4 additions and 0 deletions.
  1. +4 −0 ares_options.c
View
4 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 <arpa/inet.h>
+#endif
int ares_get_servers(ares_channel channel,
struct ares_addr_node **servers)

0 comments on commit 1ac8333

Please sign in to comment.
Something went wrong with that request. Please try again.