summaryrefslogtreecommitdiff
path: root/src/lib/eina/eina_log.c
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2020-06-11 02:18:50 +0200
committerDaniel Kolesa <d.kolesa@samsung.com>2020-06-11 02:20:00 +0200
commite557869765f04509f3d6b5fc5c04710cf2568a27 (patch)
tree59b9b542238e0e28827433a7649c28ef59f02d51 /src/lib/eina/eina_log.c
parentd7f9bc7499dc6e627c542bb9d4b870c882f6ec03 (diff)
eina: only enable EINA_LOG_BACKTRACE when backtrace API is present
This prevents build breakage on platforms that either don't have backtrace() or don't have the appropriate library for it installed.
Diffstat (limited to '')
-rw-r--r--src/lib/eina/eina_log.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/eina/eina_log.c b/src/lib/eina/eina_log.c
index 4cd634bd72..d05aa22830 100644
--- a/src/lib/eina/eina_log.c
+++ b/src/lib/eina/eina_log.c
@@ -38,7 +38,10 @@
38#endif 38#endif
39 39
40#include "eina_debug_private.h" 40#include "eina_debug_private.h"
41
42#ifdef HAVE_BACKTRACE
41#define EINA_LOG_BACKTRACE 43#define EINA_LOG_BACKTRACE
44#endif
42 45
43#include "eina_config.h" 46#include "eina_config.h"
44#include "eina_private.h" 47#include "eina_private.h"