From 3947269f97ddd35388220be741160dac62bb8e64 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Thu, 25 Nov 2010 01:41:28 +0100 Subject: [PATCH] Mingw32 has no inet_pton/inet_ntop; import them from c-ares (hack) --- src/node_cares.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/node_cares.cc b/src/node_cares.cc index bdfb31ab40..d7d5884556 100644 --- a/src/node_cares.cc +++ b/src/node_cares.cc @@ -24,6 +24,18 @@ # endif #endif // __OpenBSD__ +/* HACK to use inet_pton/inet_ntop from c-ares because mingw32 doesn't have it /* +/* TODO fixme */ +#ifdef __MINGW32__ + extern "C" { +# include +# include + } + +# define inet_pton ares_inet_pton +# define inet_ntop ares_inet_ntop +#endif + namespace node { using namespace v8;