diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2017-08-26 01:41:07 +0200 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2017-08-26 01:46:40 +0200 |
commit | adf580f72af5885ce25cb0df44d9e5676dfc0214 (patch) | |
tree | f2ca1ace2ea1d7cacc894713a3bb6771487b8bb9 | |
parent | lib: prefix: fix char value size (diff) | |
download | frr-adf580f72af5885ce25cb0df44d9e5676dfc0214.tar.xz frr-adf580f72af5885ce25cb0df44d9e5676dfc0214.zip |
zebra: remove RT_ROUNDUP warning
This warning is at odds with how the world works. Also, the code is
correct on all platforms we care about.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
-rw-r--r-- | zebra/kernel_socket.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/zebra/kernel_socket.c b/zebra/kernel_socket.c index 84d01bca6..e2a1deb9a 100644 --- a/zebra/kernel_socket.c +++ b/zebra/kernel_socket.c @@ -88,13 +88,10 @@ extern struct zebra_privs_t zserv_privs; #if !defined(ROUNDUP) /* - * It's a bug for a platform not to define rounding/alignment for - * sockaddrs on the routing socket. This warning really is - * intentional, to provoke filing bug reports with operating systems - * that don't define RT_ROUNDUP or equivalent. + * If you're porting to a platform that changed RT_ROUNDUP but doesn't + * have it in its headers, this will break rather obviously and you'll + * have to fix it here. */ -#warning \ - "net/route.h does not define RT_ROUNDUP; making unwarranted assumptions!" /* OS X (Xcode as of 2014-12) is known not to define RT_ROUNDUP */ #ifdef __APPLE__ |