local-bind-fixup: Fix inet_pton warning.

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

Signed-off-by: Ben Greear <greearb@candelatech.com>
pull/1/head
Ben Greear 15 years ago
parent 45557a138e
commit 1ac83339e3
  1. 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)

Loading…
Cancel
Save