diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2013-07-30 23:32:53 +0200 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2013-07-30 23:33:45 +0200 |
commit | 3ff2cbc892ce2d6aa01a986963f8437b8070b085 (patch) | |
tree | 84efdd2a7462daad3d2ea79bbeea647ad4f67ce9 /deps/uv/src/win/util.c | |
parent | 4cc57b4aca65ea86f4e42ddaeadfa796db239719 (diff) | |
download | node-new-3ff2cbc892ce2d6aa01a986963f8437b8070b085.tar.gz |
deps: upgrade libuv to joyent/libuv@4bdb7d8
Non-release upgrade so pending patches can land.
Diffstat (limited to 'deps/uv/src/win/util.c')
-rw-r--r-- | deps/uv/src/win/util.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/deps/uv/src/win/util.c b/deps/uv/src/win/util.c index f19d30a056..a8183438fa 100644 --- a/deps/uv/src/win/util.c +++ b/deps/uv/src/win/util.c @@ -32,6 +32,7 @@ #include "internal.h" #include <winsock2.h> +#include <winperf.h> #include <iphlpapi.h> #include <psapi.h> #include <tlhelp32.h> @@ -939,6 +940,13 @@ int uv_interface_addresses(uv_interface_address_t** addresses_ptr, memset(uv_address, 0, sizeof *uv_address); uv_address->name = name_buf; + + if (win_address->PhysicalAddressLength == sizeof(uv_address->phys_addr)) { + memcpy(uv_address->phys_addr, + win_address->PhysicalAddress, + sizeof(uv_address->phys_addr)); + } + uv_address->is_internal = (win_address->IfType == IF_TYPE_SOFTWARE_LOOPBACK); |