From f0351918afc67c577815e698fa272099a878c5d9 Mon Sep 17 00:00:00 2001 From: Quentin Armitage Date: Fri, 29 Mar 2024 07:57:10 +0000 Subject: [PATCH] vrrp: fix commit "fix lack macro for find_rttables_group()" Commit "fix lack macro for find_rttabpes_group()" - db4b11d didn't work if building without SNMP support. This is now resolved by this patch. Signed-off-by: Quentin Armitage --- lib/rttables.c | 2 +- lib/rttables.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/rttables.c b/lib/rttables.c index f66e4a8b79..aaad772ea4 100644 --- a/lib/rttables.c +++ b/lib/rttables.c @@ -322,7 +322,7 @@ find_rttables_dsfield(const char *name, uint8_t *id) return ret; } -#if HAVE_DECL_FRA_SUPPRESS_IFGROUP && defined _WITH_SNMP_VRRP_ +#if HAVE_DECL_FRA_SUPPRESS_IFGROUP bool find_rttables_group(const char *name, uint32_t *id) { diff --git a/lib/rttables.h b/lib/rttables.h index 68d060bb91..5b97514e3e 100644 --- a/lib/rttables.h +++ b/lib/rttables.h @@ -31,7 +31,7 @@ extern void clear_rt_names(void); extern bool find_rttables_table(const char *, uint32_t *); extern bool find_rttables_dsfield(const char *, uint8_t *); extern bool find_rttables_realms(const char *, uint32_t *); -#if HAVE_DECL_FRA_SUPPRESS_IFGROUP && defined _WITH_SNMP_VRRP_ +#if HAVE_DECL_FRA_SUPPRESS_IFGROUP extern bool find_rttables_group(const char *, uint32_t *); #endif extern bool find_rttables_proto(const char *, uint8_t *);