1
0
mirror of https://github.com/libuv/libuv synced 2025-03-28 21:13:16 +00:00

aix,ibmi: fix undeclared identifiers (#4730)

Refs: https://github.com/libuv/libuv/pull/4724
This commit is contained in:
Richard Lau 2025-03-03 20:08:09 +00:00 committed by GitHub
parent 92eacd19a1
commit 352d992916
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View File

@ -1178,7 +1178,7 @@ int uv_interface_addresses(uv_interface_address_t** addresses, int* count) {
if (!(flg.ifr_flags & IFF_UP && flg.ifr_flags & IFF_RUNNING))
continue;
namelen += strlen(ent->ifa_name) + 1;
namelen += strlen(p->ifr_name) + 1;
(*count)++;
}
@ -1191,6 +1191,7 @@ int uv_interface_addresses(uv_interface_address_t** addresses, int* count) {
r = UV_ENOMEM;
goto cleanup;
}
name = (char*) &(*addresses)[*count];
address = *addresses;
ifr = ifc.ifc_req;

View File

@ -394,6 +394,8 @@ static int get_ibmi_physical_address(const char* line, char (*phys_addr)[6]) {
int uv_interface_addresses(uv_interface_address_t** addresses, int* count) {
uv_interface_address_t* address;
struct ifaddrs_pase *ifap = NULL, *cur;
size_t namelen;
char* name;
int inet6, r = 0;
*count = 0;