From c83f8b91af225050568a37dcdc46af7c49af0930 Mon Sep 17 00:00:00 2001 From: cjihrig Date: Wed, 8 Nov 2017 12:22:34 -0500 Subject: [PATCH] unix: move net/if.h include This commit moves the net/if.h include into src/getaddrinfo.c to prevent AIX compilation errors. With these symbols exposed publicly, Node.js compilation failed on AIX by exposing Free(), which conflicts with another API. Refs: https://github.com/nodejs/node/pull/16835 Refs: https://github.com/libuv/libuv/pull/1445 PR-URL: https://github.com/libuv/libuv/pull/1622 Reviewed-By: Ben Noordhuis --- include/uv-unix.h | 1 - src/unix/getaddrinfo.c | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/include/uv-unix.h b/include/uv-unix.h index 99aab2b8a01..6565ff441ef 100644 --- a/include/uv-unix.h +++ b/include/uv-unix.h @@ -32,7 +32,6 @@ #include #include #include -#include #include #include diff --git a/src/unix/getaddrinfo.c b/src/unix/getaddrinfo.c index 99a6ef33be3..0185971697a 100644 --- a/src/unix/getaddrinfo.c +++ b/src/unix/getaddrinfo.c @@ -32,6 +32,7 @@ #include /* NULL */ #include #include +#include /* if_indextoname() */ /* EAI_* constants. */ #include