]> git.proxmox.com Git - mirror_frr.git/commitdiff
zebra: fix compilation on OpenBSD
authorRafael Zalamena <rzalamena@opensourcerouting.org>
Fri, 21 Dec 2018 19:03:05 +0000 (17:03 -0200)
committerRafael Zalamena <rzalamena@opensourcerouting.org>
Fri, 21 Dec 2018 21:33:58 +0000 (19:33 -0200)
OpenBSD doesn't define RTM_LOCK anymore:
https://marc.info/?l=openbsd-tech&m=153018811429193&w=2

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
zebra/kernel_socket.c

index 4f89d53e399cdbf19e3eb581af5ed288b1d831ec..3e46a79e964191c82a1905abe12ab236a0bbb390 100644 (file)
@@ -139,7 +139,9 @@ const struct message rtm_type_str[] = {{RTM_ADD, "RTM_ADD"},
                                       {RTM_LOSING, "RTM_LOSING"},
                                       {RTM_REDIRECT, "RTM_REDIRECT"},
                                       {RTM_MISS, "RTM_MISS"},
+#ifdef RTM_LOCK
                                       {RTM_LOCK, "RTM_LOCK"},
+#endif /* RTM_LOCK */
 #ifdef OLDADD
                                       {RTM_OLDADD, "RTM_OLDADD"},
 #endif /* RTM_OLDADD */