From eb68d4a04c3088ec3127b300205ec300012b5e9d Mon Sep 17 00:00:00 2001 From: Carmine Scarpitta Date: Wed, 17 May 2023 18:47:23 +0200 Subject: [PATCH] zebra: Fix build error when `--disable-bfdd` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When FRR is built with the option `--disable-bfdd`, the build process fails with the following error: ``` zebra/zebra_ptm.c: In function ‘zebra_ptm_init’: zebra/zebra_ptm.c:119:35: error: ‘FRR_PTM_NAME’ undeclared (first use in this function) 119 | snprintf(buf, sizeof(buf), "%s", FRR_PTM_NAME); | ^~~~~~~~~~~~ zebra/zebra_ptm.c:119:35: note: each undeclared identifier is reported only once for each function it appears in make[1]: *** [Makefile:10520: zebra/zebra_ptm.o] Error 1 ``` The reason is that `FRR_PTM_NAME` is defined in `version.h` which is not imported. This commit adds the missing import. Signed-off-by: Carmine Scarpitta --- zebra/zebra_ptm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/zebra/zebra_ptm.c b/zebra/zebra_ptm.c index a1fee840df..fc3f0c96a7 100644 --- a/zebra/zebra_ptm.c +++ b/zebra/zebra_ptm.c @@ -16,6 +16,7 @@ #include "ptm_lib.h" #include "rib.h" #include "stream.h" +#include "lib/version.h" #include "vrf.h" #include "vty.h" #include "lib_errors.h"