projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7de459
)
Mingw32 has no inet_pton/inet_ntop; import them from c-ares (hack)
author
Bert Belder
<bertbelder@gmail.com>
Thu, 25 Nov 2010 00:41:28 +0000
(
01:41
+0100)
committer
Bert Belder
<bertbelder@gmail.com>
Mon, 20 Dec 2010 22:50:45 +0000
(23:50 +0100)
src/node_cares.cc
patch
|
blob
|
history
diff --git
a/src/node_cares.cc
b/src/node_cares.cc
index
bdfb31a
..
d7d5884
100644
(file)
--- 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 <inet_net_pton.h>
+# include <inet_ntop.h>
+ }
+
+# define inet_pton ares_inet_pton
+# define inet_ntop ares_inet_ntop
+#endif
+
namespace node {
using namespace v8;