From a28ad4807585e39458d44d6537c8ea4222d41736 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Thu, 4 Feb 2010 20:40:35 +0000 Subject: [PATCH] * Added _SIZEOF_ADDR_IFREQ() macro as existing on FreeBSD. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35408 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/posix/net/if.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/headers/posix/net/if.h b/headers/posix/net/if.h index 73215b958a..f87648445e 100644 --- a/headers/posix/net/if.h +++ b/headers/posix/net/if.h @@ -80,6 +80,10 @@ struct ifconf { }; }; +#define _SIZEOF_ADDR_IFREQ(request) \ + (sizeof((request).ifr_name) + (request).ifr_addr.sa_len) + + /* POSIX definitions follow */ struct if_nameindex {