getaddrinfo exists on windows

pull/5370/head
Ryan Dahl 2011-01-28 13:40:41 -08:00
parent 43d818a19c
commit fda70b8b90
1 changed files with 0 additions and 6 deletions

View File

@ -1395,8 +1395,6 @@ static Handle<Value> SetTTL(const Arguments& args) {
} }
#ifdef __POSIX__
// //
// G E T A D D R I N F O // G E T A D D R I N F O
// //
@ -1554,8 +1552,6 @@ static Handle<Value> GetAddrInfo(const Arguments& args) {
return Undefined(); return Undefined();
} }
#endif // __POSIX__
static Handle<Value> IsIP(const Arguments& args) { static Handle<Value> IsIP(const Arguments& args) {
HandleScope scope; HandleScope scope;
@ -1631,9 +1627,7 @@ void InitNet(Handle<Object> target) {
NODE_SET_METHOD(target, "setKeepAlive", SetKeepAlive); NODE_SET_METHOD(target, "setKeepAlive", SetKeepAlive);
NODE_SET_METHOD(target, "getsockname", GetSockName); NODE_SET_METHOD(target, "getsockname", GetSockName);
NODE_SET_METHOD(target, "getpeername", GetPeerName); NODE_SET_METHOD(target, "getpeername", GetPeerName);
#ifdef __POSIX__
NODE_SET_METHOD(target, "getaddrinfo", GetAddrInfo); NODE_SET_METHOD(target, "getaddrinfo", GetAddrInfo);
#endif // __POSIX__
NODE_SET_METHOD(target, "isIP", IsIP); NODE_SET_METHOD(target, "isIP", IsIP);
NODE_SET_METHOD(target, "errnoException", CreateErrnoException); NODE_SET_METHOD(target, "errnoException", CreateErrnoException);