Permalink
Browse files

common: fix includes

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...
1 parent 083c97e commit b288afdf14a2da3bbd6a2510c043f816ec7c6a42 @bnoordhuis bnoordhuis committed Sep 24, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/uv-common.c
View
@@ -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"

0 comments on commit b288afd

Please sign in to comment.