From dc2ae93b1489fcde2cb8007526f22982165cee36 Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Mon, 30 Oct 2017 12:17:30 +0100 Subject: [PATCH] src: Explicitly include . cares_wrap.cc calls into functions like getnameinfo() and getaddrinfo(). These functions tend to be available implicitly through , but we'd better still include this header explicitly. On CloudABI, we make use of a custom implementation of libuv that does not implicitly include header files like . --- src/cares_wrap.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/cares_wrap.cc b/src/cares_wrap.cc index e800e0f2fee260..59f021fd49d448 100644 --- a/src/cares_wrap.cc +++ b/src/cares_wrap.cc @@ -38,6 +38,10 @@ #include #include +#ifdef __POSIX__ +# include +#endif // __POSIX__ + #if defined(__ANDROID__) || \ defined(__MINGW32__) || \ defined(__OpenBSD__) || \