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
committerMichele Calgaro <michele.calgaro@yahoo.it>2021-09-23 17:11:30 +0900
commit443e9d7cf59bb88f8920628405b2e1c6aaf770d0 (patch)
treeae5ebcd9f4142c171550884de6157877bb3a43ae /kmtrace/ktrace.c
parent08cea68d1ac6b82ce7fb7aa3c152c272afb5a135 (diff)
downloadtdesdk-443e9d7c.tar.gz
tdesdk-443e9d7c.zip
Add a backtrace function and library detection.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit cf63191672fff12cd57892ba4642ed4f01e9c6a4)
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>