diff --git a/headers/posix/net/if.h b/headers/posix/net/if.h index 868657a3a4..fdeff5d579 100644 --- a/headers/posix/net/if.h +++ b/headers/posix/net/if.h @@ -109,8 +109,8 @@ struct ifconf { /* Macro that returns the size of a single address within a SIOCGIFCONF buffer; it looks like this because of compatibility with other platforms. */ #define _SIZEOF_ADDR_IFREQ(request) \ - (IF_NAMESIZE + (request).ifr_addr.sa_len > (int)sizeof(ifreq) \ - ? IF_NAMESIZE + (request).ifr_addr.sa_len : sizeof(ifreq)) + (IF_NAMESIZE + (request).ifr_addr.sa_len > (int)sizeof(struct ifreq) \ + ? IF_NAMESIZE + (request).ifr_addr.sa_len : sizeof(struct ifreq)) /* POSIX definitions follow */