Skip to content

Commit

Permalink
local-bind-fixup: Fix inet_pton warning.
Browse files Browse the repository at this point in the history
Conditionally include <arpa/inet.h> for inet_pton
headers.

Signed-off-by: Ben Greear <greearb@candelatech.com>
  • Loading branch information
greearb committed Jul 30, 2010
1 parent 45557a1 commit 1ac8333
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ares_options.c
Expand Up @@ -23,6 +23,10 @@
#include "ares_private.h" #include "ares_private.h"
#include "inet_net_pton.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, int ares_get_servers(ares_channel channel,
struct ares_addr_node **servers) struct ares_addr_node **servers)
Expand Down

0 comments on commit 1ac8333

Please sign in to comment.