From 42bd140546d62cdfce1f07cf620c1fd753a459ce Mon Sep 17 00:00:00 2001 From: Philippe Houdoin Date: Mon, 6 Dec 2010 11:33:00 +0000 Subject: [PATCH] Fix _SIZEOF_ADDR_IFREQ() macro definition: there is no ifreq type. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39746 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/posix/net/if.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 */