From 06f750c46694b6f6a41ad9527db30a5490fe2273 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Wed, 24 Aug 2011 16:20:08 -0700 Subject: [PATCH] fix windows build --- node.gyp | 1 + src/udp_wrap.cc | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/node.gyp b/node.gyp index 6758e14c81..147b603e34 100644 --- a/node.gyp +++ b/node.gyp @@ -46,6 +46,7 @@ 'src/timer_wrap.cc', 'src/process_wrap.cc', 'src/v8_typed_array.cc', + 'src/udp_wrap.cc', ], 'defines': [ diff --git a/src/udp_wrap.cc b/src/udp_wrap.cc index 09478bca63..1bd75368bd 100644 --- a/src/udp_wrap.cc +++ b/src/udp_wrap.cc @@ -372,7 +372,7 @@ void AddressToJS(Handle info, switch (addr->sa_family) { case AF_INET6: a6 = reinterpret_cast(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)); @@ -380,7 +380,7 @@ void AddressToJS(Handle info, case AF_INET: a4 = reinterpret_cast(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));