Permalink
Browse files

fix windows build

  • Loading branch information...
1 parent f9dae9e commit 06f750c46694b6f6a41ad9527db30a5490fe2273 @ry ry committed Aug 24, 2011
Showing with 3 additions and 2 deletions.
  1. +1 −0 node.gyp
  2. +2 −2 src/udp_wrap.cc
View
@@ -46,6 +46,7 @@
'src/timer_wrap.cc',
'src/process_wrap.cc',
'src/v8_typed_array.cc',
+ 'src/udp_wrap.cc',
],
'defines': [
View
@@ -372,15 +372,15 @@ void AddressToJS(Handle<Object> info,
switch (addr->sa_family) {
case AF_INET6:
a6 = reinterpret_cast<const sockaddr_in6*>(addr);
- inet_ntop(AF_INET6, &a6->sin6_addr, ip, sizeof ip);
+ uv_inet_ntop(AF_INET6, &a6->sin6_addr, ip, sizeof ip);
port = ntohs(a6->sin6_port);
info->Set(address_symbol, String::New(ip));
info->Set(port_symbol, Integer::New(port));
break;
case AF_INET:
a4 = reinterpret_cast<const sockaddr_in*>(addr);
- inet_ntop(AF_INET, &a4->sin_addr, ip, sizeof ip);
+ uv_inet_ntop(AF_INET, &a4->sin_addr, ip, sizeof ip);
port = ntohs(a4->sin_port);
info->Set(address_symbol, String::New(ip));
info->Set(port_symbol, Integer::New(port));

0 comments on commit 06f750c

Please sign in to comment.