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:
52b2954
)
EAI_NODATA deprecated, patch to use EAI_NONAME if missing (it is in FreeBSD)
author
Herbert Vojcik
<herby@mailbox.sk>
Sat, 20 Mar 2010 13:37:16 +0000
(14:37 +0100)
committer
Ryan Dahl
<ry@tinyclouds.org>
Wed, 31 Mar 2010 15:12:35 +0000
(08:12 -0700)
src/node_net2.cc
patch
|
blob
|
history
diff --git
a/src/node_net2.cc
b/src/node_net2.cc
index 560db1db98084619faad418ef46b9ed0f357b866..90b58135f9f74ff9b0b1da48fee7683f808979e2 100644
(file)
--- a/
src/node_net2.cc
+++ b/
src/node_net2.cc
@@
-1080,6
+1080,9
@@
struct resolve_request {
char hostname[1];
};
+#ifndef EAI_NODATA // EAI_NODATA is deprecated, FreeBSD already thrown it away in favor of EAI_NONAME
+#define EAI_NODATA EAI_NONAME
+#endif
static int AfterResolve(eio_req *req) {
ev_unref(EV_DEFAULT_UC);