mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
Fix mingw build
This commit is contained in:
parent
6329633a3e
commit
f99fc29e62
@ -5,6 +5,7 @@
|
||||
|
||||
- Better `net` support
|
||||
* getaddrinfo
|
||||
* setMulticastTTL, setMembership, setLoopback
|
||||
* pipe, socketpair
|
||||
* A named pipe should be provided when a unix socket is requested.
|
||||
* SendMsg and RecvMsg should be supported with named pipes.
|
||||
|
@ -1395,6 +1395,9 @@ static Handle<Value> SetTTL(const Arguments& args) {
|
||||
return scope.Close(Integer::New(newttl));
|
||||
}
|
||||
|
||||
|
||||
#ifdef __POSIX__
|
||||
|
||||
static Handle<Value> SetMulticastTTL(const Arguments& args) {
|
||||
HandleScope scope;
|
||||
|
||||
@ -1492,6 +1495,9 @@ static Handle<Value> DropMembership(const Arguments& args) {
|
||||
return SetMembership(args, IP_DROP_MEMBERSHIP);
|
||||
}
|
||||
|
||||
#endif // __POSIX__
|
||||
|
||||
|
||||
//
|
||||
// G E T A D D R I N F O
|
||||
//
|
||||
@ -1722,10 +1728,12 @@ void InitNet(Handle<Object> target) {
|
||||
NODE_SET_METHOD(target, "setBroadcast", SetBroadcast);
|
||||
NODE_SET_METHOD(target, "setTTL", SetTTL);
|
||||
NODE_SET_METHOD(target, "setKeepAlive", SetKeepAlive);
|
||||
#ifdef __POSIX__
|
||||
NODE_SET_METHOD(target, "setMulticastTTL", SetMulticastTTL);
|
||||
NODE_SET_METHOD(target, "setMulticastLoopback", SetMulticastLoopback);
|
||||
NODE_SET_METHOD(target, "addMembership", AddMembership);
|
||||
NODE_SET_METHOD(target, "dropMembership", DropMembership);
|
||||
#endif // __POSIX__
|
||||
NODE_SET_METHOD(target, "getsockname", GetSockName);
|
||||
NODE_SET_METHOD(target, "getpeername", GetPeerName);
|
||||
NODE_SET_METHOD(target, "getaddrinfo", GetAddrInfo);
|
||||
|
Loading…
Reference in New Issue
Block a user