Skip to content

Commit

Permalink
mgmtd: fix compile error
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
anlancs committed Dec 21, 2024
1 parent f7fcc44 commit b5b8c9d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mgmtd/mgmt_be_adapter.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand Down

0 comments on commit b5b8c9d

Please sign in to comment.