Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 6eb32aacaef8c77623c3b00e8098c2d288e744e1 1 parent 94dbbee
Ben Noordhuis bnoordhuis authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/uv-common.c
4 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"
Please sign in to comment.
Something went wrong with that request. Please try again.