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

Commit

Permalink
aix: fix build breakage introduced in 3ee4d3f
Browse files Browse the repository at this point in the history
Possibly, anyway - this change is untested. Without it, libuv
definitely won't build on AIX though.
  • Loading branch information
bnoordhuis committed Jul 29, 2013
1 parent 167a817 commit 4bdb7d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/unix/aix.c
Expand Up @@ -318,7 +318,7 @@ int uv_interface_addresses(uv_interface_address_t** addresses,
memcpy(flg.ifr_name, p->ifr_name, sizeof(flg.ifr_name));
if (ioctl(sockfd, SIOCGIFFLAGS, &flg) == -1) {
close(sockfd);
return uv__new_artificial_error(UV_ENOSYS);
return -ENOSYS;
}

if (!(flg.ifr_flags & IFF_UP && flg.ifr_flags & IFF_RUNNING))
Expand Down Expand Up @@ -349,7 +349,7 @@ int uv_interface_addresses(uv_interface_address_t** addresses,
memcpy(flg.ifr_name, p->ifr_name, sizeof(flg.ifr_name));
if (ioctl(sockfd, SIOCGIFFLAGS, &flg) == -1) {
close(sockfd);
return uv__new_artificial_error(UV_ENOSYS);
return -ENOSYS;
}

if (!(flg.ifr_flags & IFF_UP && flg.ifr_flags & IFF_RUNNING))
Expand Down

0 comments on commit 4bdb7d8

Please sign in to comment.