From: Philippe Guibert Date: Thu, 14 Sep 2023 11:52:25 +0000 (+0200) Subject: lib: fix RT_TABLE_LOCAL for bsd builds X-Git-Tag: base_10.0~318^2~3 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=a61f49ab3607a829f2ef838536f496da15f75518;p=matthieu%2Ffrr.git 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 --- 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