diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2024-01-04 14:20:40 -0500 |
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2024-01-04 14:20:40 -0500 |
| commit | fbc31156f0ae2d1a345994e2de95166e28fa70ac (patch) | |
| tree | 871d1b76993c8676a9b7611d0cee923631fbb45a /lib/log.c | |
| parent | a57379fa140ee48da521061f358b34ebc6ea7875 (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.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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" |
