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 94dbbee commit 6eb32aacaef8c77623c3b00e8098c2d288e744e1 @bnoordhuis bnoordhuis committed Sep 24, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/uv-common.c
View
4 src/uv-common.c
@@ -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 6eb32aa

Please sign in to comment.