diff options
| author | Philippe Guibert <philippe.guibert@6wind.com> | 2023-09-14 13:52:25 +0200 |
|---|---|---|
| committer | Philippe Guibert <philippe.guibert@6wind.com> | 2023-10-20 13:28:52 +0200 |
| commit | a61f49ab3607a829f2ef838536f496da15f75518 (patch) | |
| tree | bbfb00502c6d1313802ec91958bd89b3fd1f1705 /lib/zebra.h | |
| parent | daad19071cc40e4ef6913e674cc41fa35121c399 (diff) | |
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 <philippe.guibert@6wind.com>
Diffstat (limited to 'lib/zebra.h')
| -rw-r--r-- | lib/zebra.h | 1 |
1 files changed, 1 insertions, 0 deletions
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 <linux/filter.h> #else #define RT_TABLE_MAIN 0 +#define RT_TABLE_LOCAL RT_TABLE_MAIN #endif /* HAVE_NETLINK */ #include <netdb.h> |
