solaris: no ROUNDUP

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
(cherry picked from commit a2b503131b188292ede08df99309bcbef4bd1a52)
This commit is contained in:
David Lamparter 2015-09-15 19:35:41 -07:00 committed by Daniel Walton
parent 3e3a83b2c1
commit f7f9a982fa

View File

@ -69,6 +69,12 @@ extern struct zebra_privs_t zserv_privs;
#define ROUNDUP(a) RT_ROUNDUP(a)
#endif /* defined(RT_ROUNDUP) */
#if defined(SUNOS_5)
/* Solaris has struct sockaddr_in[6] definitions at 16 / 32 bytes size,
* so the whole concept doesn't really apply. */
#define ROUNDUP(a) (a)
#endif
/*
* If ROUNDUP has not yet been defined in terms of platform-provided
* defines, attempt to cope with heuristics.