summaryrefslogtreecommitdiffstats
path: root/kmtrace/ktrace.c
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2021-09-15 22:18:04 +0200
committerSlávek Banko <slavek.banko@axis.cz>2021-09-15 22:42:00 +0200
commitcf63191672fff12cd57892ba4642ed4f01e9c6a4 (patch)
tree4464031464fe01f04c0f24bbc1181246519e1505 /kmtrace/ktrace.c
parentf4582480b472d7551d8f867bae4c99a96c9d588d (diff)
downloadtdesdk-cf63191672fff12cd57892ba4642ed4f01e9c6a4.tar.gz
tdesdk-cf63191672fff12cd57892ba4642ed4f01e9c6a4.zip
Add a backtrace function and library detection.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'kmtrace/ktrace.c')
-rw-r--r--kmtrace/ktrace.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/kmtrace/ktrace.c b/kmtrace/ktrace.c
index e7eee47b..dcc321e5 100644
--- a/kmtrace/ktrace.c
+++ b/kmtrace/ktrace.c
@@ -25,6 +25,10 @@
or (US mail) as Mike Haertel c/o Free Software Foundation.
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#define MALLOC_HOOKS
#define _GNU_SOURCE
@@ -35,8 +39,8 @@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
-#include <execinfo.h>
#include <unistd.h>
+#include BACKTRACE_H
#ifdef USE_IN_LIBIO
# include <libio/iolibio.h>