From 4b050cb08079446df8cbbe490ea2f0160eb65bba Mon Sep 17 00:00:00 2001 From: Jafar Al-Gharaibeh Date: Thu, 22 Aug 2024 14:26:01 -0500 Subject: config: fix missing case when reporting version 'configured with' Signed-off-by: Jafar Al-Gharaibeh --- lib/libfrr.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/libfrr.c') diff --git a/lib/libfrr.c b/lib/libfrr.c index 07cd4a5306..10a9c5d5f2 100644 --- a/lib/libfrr.c +++ b/lib/libfrr.c @@ -1463,7 +1463,10 @@ void _libfrr_version(void) const char banner[] = FRR_FULL_NAME " " FRR_VERSION ".\n" FRR_COPYRIGHT GIT_INFO "\n" - "configured with:\n " FRR_CONFIG_ARGS "\n"; +#ifdef ENABLE_VERSION_BUILD_CONFIG + "configured with:\n " FRR_CONFIG_ARGS "\n" +#endif + ; write(1, banner, sizeof(banner) - 1); _exit(0); } -- cgit v1.2.3