summaryrefslogtreecommitdiff
path: root/zebra/kernel_socket.c
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2018-02-01 23:18:46 -0200
committerRenato Westphal <renato@opensourcerouting.org>2018-02-02 16:31:20 -0200
commita37bd5e070a0a11d03522a12b5d2b9a2647f7bbb (patch)
treec71b522a2f4d08b3af69fd793471c74990942064 /zebra/kernel_socket.c
parenta7ce0ad1dacc62d01ec11422586b211c5239e890 (diff)
lib: fix more warnings on *BSD
* zebra/kernel_socket.c: include "rt.h" to provide the prototypes of kernel_init() and kernel_terminate(); * lib/prefix.h: remove the deprecation warning whenever ETHER_ADDR_LEN is used. isisd uses the ETHER_HDR_LEN constant which is defined in terms of ETHER_ADDR_LEN in the *BSD system headers. So, when building FRR on *BSD, we were getting several warnings because we were using ETHER_ADDR_LEN indirectly; * lib/command_lex.l, lib/defun_lex.l: ignore other harmless warnings; * lib/spf_backoff.c: cast 'tv->tv_usec' to 'long int' before printing. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'zebra/kernel_socket.c')
-rw-r--r--zebra/kernel_socket.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/zebra/kernel_socket.c b/zebra/kernel_socket.c
index ba028ed09c..2a3b95058e 100644
--- a/zebra/kernel_socket.c
+++ b/zebra/kernel_socket.c
@@ -40,6 +40,7 @@
#include "privs.h"
#include "vrf.h"
+#include "zebra/rt.h"
#include "zebra/interface.h"
#include "zebra/zserv.h"
#include "zebra/debug.h"