return Undefined();
}
+#endif // __POSIX__
+
static Handle<Value> IsIP(const Arguments& args) {
HandleScope scope;
return scope.Close(exception);
}
-#endif // __POSIX__
-
void InitNet(Handle<Object> target) {
HandleScope scope;
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");