summaryrefslogtreecommitdiff
path: root/lib/log.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2024-01-04 14:20:40 -0500
committerDonald Sharp <sharpd@nvidia.com>2024-01-04 14:20:40 -0500
commitfbc31156f0ae2d1a345994e2de95166e28fa70ac (patch)
tree871d1b76993c8676a9b7611d0cee923631fbb45a /lib/log.c
parenta57379fa140ee48da521061f358b34ebc6ea7875 (diff)
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 <sharpd@nvidia.com>
Diffstat (limited to 'lib/log.c')
-rw-r--r--lib/log.c4
1 files changed, 4 insertions, 0 deletions
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 <zebra.h>
+#ifdef HAVE_GLIBC_BACKTRACE
+#include <execinfo.h>
+#endif /* HAVE_GLIBC_BACKTRACE */
+
#include "zclient.h"
#include "log.h"
#include "memory.h"