mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 15:47:22 +00:00
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>
This commit is contained in:
parent
d440e3dbf0
commit
adf580f72a
@ -88,13 +88,10 @@ extern struct zebra_privs_t zserv_privs;
|
|||||||
#if !defined(ROUNDUP)
|
#if !defined(ROUNDUP)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* It's a bug for a platform not to define rounding/alignment for
|
* If you're porting to a platform that changed RT_ROUNDUP but doesn't
|
||||||
* sockaddrs on the routing socket. This warning really is
|
* have it in its headers, this will break rather obviously and you'll
|
||||||
* intentional, to provoke filing bug reports with operating systems
|
* have to fix it here.
|
||||||
* that don't define RT_ROUNDUP or equivalent.
|
|
||||||
*/
|
*/
|
||||||
#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 */
|
/* OS X (Xcode as of 2014-12) is known not to define RT_ROUNDUP */
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
|
Loading…
Reference in New Issue
Block a user