From 46dc393ff1716312e770045696909b9f688666f8 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Fri, 26 Nov 2010 03:19:30 +0100 Subject: [PATCH] node_net: IsIP and CreateErrnoException just work --- src/node_net.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/node_net.cc b/src/node_net.cc index db1f40f089..ccd288a964 100644 --- a/src/node_net.cc +++ b/src/node_net.cc @@ -1430,6 +1430,8 @@ static Handle GetAddrInfo(const Arguments& args) { return Undefined(); } +#endif // __POSIX__ + static Handle IsIP(const Arguments& args) { HandleScope scope; @@ -1467,8 +1469,6 @@ static Handle CreateErrnoException(const Arguments& args) { return scope.Close(exception); } -#endif // __POSIX__ - void InitNet(Handle target) { HandleScope scope; @@ -1510,9 +1510,9 @@ void InitNet(Handle target) { NODE_SET_METHOD(target, "getsockname", GetSockName); NODE_SET_METHOD(target, "getpeername", GetPeerName); NODE_SET_METHOD(target, "getaddrinfo", GetAddrInfo); +#endif // __POSIX__ NODE_SET_METHOD(target, "isIP", IsIP); NODE_SET_METHOD(target, "errnoException", CreateErrnoException); -#endif // __POSIX__ errno_symbol = NODE_PSYMBOL("errno"); syscall_symbol = NODE_PSYMBOL("syscall");