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/zlog.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/zlog.c')
| -rw-r--r-- | lib/zlog.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/zlog.c b/lib/zlog.c index 2a6189573f..446bdd7021 100644 --- a/lib/zlog.c +++ b/lib/zlog.c @@ -5,6 +5,10 @@ #include "zebra.h" +#ifdef HAVE_GLIBC_BACKTRACE +#include <execinfo.h> +#endif /* HAVE_GLIBC_BACKTRACE */ + #include <unistd.h> #include <sys/time.h> #include <sys/mman.h> |
