]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: Fix build error when `--disable-bfdd`
authorCarmine Scarpitta <carmine.scarpitta@uniroma2.it>
Wed, 17 May 2023 16:47:23 +0000 (18:47 +0200)
committerCarmine Scarpitta <carmine.scarpitta@uniroma2.it>
Wed, 17 May 2023 16:47:23 +0000 (18:47 +0200)
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 <carmine.scarpitta@uniroma2.it>
zebra/zebra_ptm.c

index a1fee840df8e95b2a954457c2e5db6048fe4ef75..fc3f0c96a72f07e7829b892e431cdc628af7e865 100644 (file)
@@ -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"