Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
uv: Upgrade to 382f2a26
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Jun 18, 2012
1 parent 0a89e8b commit d0111aa
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions deps/uv/src/unix/sunos.c
Expand Up @@ -28,7 +28,9 @@
#include <assert.h>
#include <errno.h>

#include <ifaddrs.h>
#ifndef SUNOS_NO_IFADDRS
# include <ifaddrs.h>
#endif
#include <net/if.h>

#include <sys/loadavg.h>
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -463,6 +467,7 @@ uv_err_t uv_interface_addresses(uv_interface_address_t** addresses,
freeifaddrs(addrs);

return uv_ok_;
#endif /* SUNOS_NO_IFADDRS */
}


Expand Down

0 comments on commit d0111aa

Please sign in to comment.