From d0111aa0c45d2735080d7a177470839af767f7f2 Mon Sep 17 00:00:00 2001 From: isaacs Date: Mon, 18 Jun 2012 14:51:41 -0700 Subject: [PATCH] uv: Upgrade to 382f2a26 --- deps/uv/src/unix/sunos.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/deps/uv/src/unix/sunos.c b/deps/uv/src/unix/sunos.c index bfe02bb17a1..906e69fba8c 100644 --- a/deps/uv/src/unix/sunos.c +++ b/deps/uv/src/unix/sunos.c @@ -28,7 +28,9 @@ #include #include -#include +#ifndef SUNOS_NO_IFADDRS +# include +#endif #include #include @@ -406,7 +408,9 @@ void uv_free_cpu_info(uv_cpu_info_t* cpu_infos, int count) { uv_err_t uv_interface_addresses(uv_interface_address_t** addresses, int* count) { - +#ifdef SUNOS_NO_IFADDRS + return uv__new_artificial_error(UV_ENOSYS); +#else struct ifaddrs *addrs, *ent; char ip[INET6_ADDRSTRLEN]; uv_interface_address_t* address; @@ -463,6 +467,7 @@ uv_err_t uv_interface_addresses(uv_interface_address_t** addresses, freeifaddrs(addrs); return uv_ok_; +#endif /* SUNOS_NO_IFADDRS */ }