]> git.puffer.fish 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)
committerMartin Winter <mwinter@opensourcerouting.org>
Fri, 3 May 2019 18:02:41 +0000 (11:02 -0700)
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 3721ed52a3ea7ab5c93b85a42b65ce83252ed375..25007d6c8ca90ad5b8e31399b51f5d63bd0a7e30 100644 (file)
@@ -194,7 +194,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 */