diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-08-26 08:05:36 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-08-26 08:05:36 -0400 |
| commit | c3f779dc1ab632b1ba74bf16c39dc2f18e6187bc (patch) | |
| tree | 9e6fb20b162b8f3ce619b8a7be515cd741242c39 /zebra/kernel_socket.c | |
| parent | e1bd637370df9708af91c699b2510a788625bc5a (diff) | |
| parent | d9e5b009554f99230be1eee62daf098403c3cadf (diff) | |
Merge pull request #1049 from opensourcerouting/openbsd-warnings
fix warnings on OpenBSD
Diffstat (limited to 'zebra/kernel_socket.c')
| -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 84d01bca6f..e2a1deb9ac 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__ |
