Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
common: fix includes
Browse files Browse the repository at this point in the history
Don't rely on c-ares to pull in the headers for inet_addr, net_pton and
inet_ntop. c-ares 1.7.4 did but 1.7.5 does not.
  • Loading branch information
bnoordhuis committed Sep 24, 2011
1 parent 94dbbee commit 6eb32aa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/uv-common.c
Expand Up @@ -26,6 +26,10 @@
#include <stddef.h> /* NULL */
#include <string.h> /* memset */

#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>

/* use inet_pton from c-ares if necessary */
#include "ares_config.h"
#include "ares/inet_net_pton.h"
Expand Down

0 comments on commit 6eb32aa

Please sign in to comment.