From fda70b8b9096c8482d9bfda04100210a60e249bc Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Fri, 28 Jan 2011 13:40:41 -0800 Subject: [PATCH] getaddrinfo exists on windows --- src/node_net.cc | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/node_net.cc b/src/node_net.cc index 8bbc8387a68..7bb0528292b 100644 --- a/src/node_net.cc +++ b/src/node_net.cc @@ -1395,8 +1395,6 @@ static Handle SetTTL(const Arguments& args) { } -#ifdef __POSIX__ - // // G E T A D D R I N F O // @@ -1554,8 +1552,6 @@ static Handle GetAddrInfo(const Arguments& args) { return Undefined(); } -#endif // __POSIX__ - static Handle IsIP(const Arguments& args) { HandleScope scope; @@ -1631,9 +1627,7 @@ void InitNet(Handle target) { NODE_SET_METHOD(target, "setKeepAlive", SetKeepAlive); NODE_SET_METHOD(target, "getsockname", GetSockName); NODE_SET_METHOD(target, "getpeername", GetPeerName); -#ifdef __POSIX__ NODE_SET_METHOD(target, "getaddrinfo", GetAddrInfo); -#endif // __POSIX__ NODE_SET_METHOD(target, "isIP", IsIP); NODE_SET_METHOD(target, "errnoException", CreateErrnoException);