From fbc31156f0ae2d1a345994e2de95166e28fa70ac Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Thu, 4 Jan 2024 14:20:40 -0500 Subject: lib: HAVE_GLIBC_BACKTRACE does not belong in zebra.h The backtrace functionality has been abstracted over to zlog_backtrace(). Now that every place uses this move the inclusion for HAVE_GLIBC_BACKTRACE into the appropriate files instead of having everyone pay for this costly include. Signed-off-by: Donald Sharp --- lib/log.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/log.c') diff --git a/lib/log.c b/lib/log.c index a92f9e8855..b18b37efa3 100644 --- a/lib/log.c +++ b/lib/log.c @@ -8,6 +8,10 @@ #include +#ifdef HAVE_GLIBC_BACKTRACE +#include +#endif /* HAVE_GLIBC_BACKTRACE */ + #include "zclient.h" #include "log.h" #include "memory.h" -- cgit v1.2.3