From b5b8c9d3ecf92bdb0da9f6bb59f6e1137a74110e Mon Sep 17 00:00:00 2001 From: anlan_cs Date: Sat, 21 Dec 2024 19:29:32 +0800 Subject: [PATCH] mgmtd: fix compile error Compile error with `--disable-ripd`: ``` mgmtd/mgmt_be_adapter.c:86:5: error: "HAVE_RIPD" is not defined, evaluates to 0 [-Werror=undef] 86 | #if HAVE_RIPD | ^~~~~~~~~ ``` I have searched the code, there is only three places need to be fixed. Signed-off-by: anlan_cs --- mgmtd/mgmt_be_adapter.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mgmtd/mgmt_be_adapter.c b/mgmtd/mgmt_be_adapter.c index 93c9bcac44c1..45e154d83b69 100644 --- a/mgmtd/mgmt_be_adapter.c +++ b/mgmtd/mgmt_be_adapter.c @@ -83,7 +83,7 @@ static const char *const zebra_oper_xpaths[] = { NULL, }; -#if HAVE_RIPD +#ifdef HAVE_RIPD static const char *const ripd_config_xpaths[] = { "/frr-filter:lib", "/frr-interface:lib/interface", @@ -104,7 +104,7 @@ static const char *const ripd_rpc_xpaths[] = { }; #endif -#if HAVE_RIPNGD +#ifdef HAVE_RIPNGD static const char *const ripngd_config_xpaths[] = { "/frr-filter:lib", "/frr-interface:lib/interface", @@ -123,7 +123,7 @@ static const char *const ripngd_rpc_xpaths[] = { }; #endif -#if HAVE_STATICD +#ifdef HAVE_STATICD static const char *const staticd_config_xpaths[] = { "/frr-vrf:lib", "/frr-interface:lib",