From 4bdb7d837ad99e59974274bb87fc10a35cbc1bf1 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Mon, 29 Jul 2013 06:11:11 +0200 Subject: [PATCH] aix: fix build breakage introduced in 3ee4d3f Possibly, anyway - this change is untested. Without it, libuv definitely won't build on AIX though. --- src/unix/aix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/unix/aix.c b/src/unix/aix.c index 0e4c4f7a..604a38d8 100644 --- a/src/unix/aix.c +++ b/src/unix/aix.c @@ -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)) @@ -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))