Navigation Menu

Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
sunos: uv_interface_addresses needlessly #ifdef'd out
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Cavage authored and isaacs committed Jun 7, 2012
1 parent 053d3af commit 9cb8bdc
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/unix/sunos.c
Expand Up @@ -28,9 +28,7 @@
#include <assert.h>
#include <errno.h>

#ifdef SUNOS_HAVE_IFADDRS
# include <ifaddrs.h>
#endif
#include <ifaddrs.h>
#include <net/if.h>

#include <sys/loadavg.h>
Expand Down Expand Up @@ -407,9 +405,7 @@ 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) {
#ifndef SUNOS_HAVE_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 @@ -466,7 +462,6 @@ uv_err_t uv_interface_addresses(uv_interface_address_t** addresses,
freeifaddrs(addrs);

return uv_ok_;
#endif /* SUNOS_HAVE_IFADDRS */
}


Expand Down

0 comments on commit 9cb8bdc

Please sign in to comment.