1From 4f51b0a6b9a36cc56fa06eb0f76596d8e387f980 Mon Sep 17 00:00:00 2001 2From: Gary Bisson <gary.bisson@boundarydevices.com> 3Date: Fri, 27 Mar 2020 23:17:30 +0100 4Subject: [PATCH] Fix build with uclibc toolchain 5 6From: Laurent Gauthier (OSS) <laurent.gauthier_1@oss.nxp.com> 7 8By default, backtrace support is disabled in uclibc. In that case the 9execinfo.h header file is missing, producing a build error. 10 11Signed-off-by: Laurent Gauthier (OSS) <laurent.gauthier_1@oss.nxp.com> 12Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com> 13--- 14 openmax_il/source/dbgmacros.h | 14 +++++++------- 15 1 file changed, 7 insertions(+), 7 deletions(-) 16 17diff --git a/openmax_il/source/dbgmacros.h b/openmax_il/source/dbgmacros.h 18index 3771c91..37ae09f 100755 19--- a/openmax_il/source/dbgmacros.h 20+++ b/openmax_il/source/dbgmacros.h 21@@ -50,13 +50,6 @@ 22 # define __USE_GNU 23 #endif 24 25-#ifndef ANDROID 26-#include <execinfo.h> 27-#include <link.h> 28-#endif 29-#include <dlfcn.h> 30-#include <elf.h> 31- 32 /***************** 33 ** DEBUG FLAGS ** 34 *****************/ 35@@ -76,6 +69,13 @@ 36 #define TRACE_FILE "trace.log" 37 #endif 38 39+#ifndef ANDROID 40+#include <execinfo.h> 41+#include <link.h> 42+#endif 43+#include <dlfcn.h> 44+#include <elf.h> 45+ 46 #ifdef LOG_IN_FILE 47 #define TRACE(...) \ 48 { \ 49-- 502.25.1 51 52