mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
EAI_NODATA deprecated, patch to use EAI_NONAME if missing (it is in FreeBSD)
This commit is contained in:
1 parent
52b295400d
commit
9e97e185ad
1 file changed
+3
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user