From a61f49ab3607a829f2ef838536f496da15f75518 Mon Sep 17 00:00:00 2001 From: Philippe Guibert Date: Thu, 14 Sep 2023 13:52:25 +0200 Subject: [PATCH] lib: fix RT_TABLE_LOCAL for bsd builds The routing table numbers are specific to linux builds, and the RT_TABLE_xxx are usually defined in linux headers. The bsd builds do not benefit from this definition: some RT_TABLE_xxx defines are missing for those builds. Fix this by appending RT_TABLE_LOCAL define for bsd headers. Signed-off-by: Philippe Guibert --- lib/zebra.h | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/zebra.h b/lib/zebra.h index 42e6a97ff8..b742e71848 100644 --- a/lib/zebra.h +++ b/lib/zebra.h @@ -121,6 +121,7 @@ #include #else #define RT_TABLE_MAIN 0 +#define RT_TABLE_LOCAL RT_TABLE_MAIN #endif /* HAVE_NETLINK */ #include -- 2.39.5