Skip to content

Commit

Permalink
lib: fix RT_TABLE_LOCAL for bsd builds
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
pguibert6WIND committed Oct 18, 2023
1 parent b6ccff7 commit 3dc065d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/zebra.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 3dc065d

Please sign in to comment.