1From 053bac34b9f0f947c58fcdf80ac03d5a6b05aa12 Mon Sep 17 00:00:00 2001
2From: "Yann E. MORIN" <yann.morin.1998@free.fr>
3Date: Mon, 7 May 2018 23:15:58 +0200
4Subject: [PATCH] mbox: do not use backtrace if using uClibc without backtrace
5 support
6
7Since uClibc can be configured without support for backtrace, disable
8the backtrace if we are building with a uClibc that was built without
9backtrace.
10
11This is a bit hacky, and would greatly benefit from a test in ./configure
12instead, but does nicely as a quick fix for now.
13
14Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
15Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
16[Bernd: rebased for 0.103.0]
17---
18 libclamav/mbox.c | 2 +-
19 1 file changed, 1 insertion(+), 1 deletion(-)
20
21diff --git a/libclamav/mbox.c b/libclamav/mbox.c
22index 71f540c0a..4851297a9 100644
23--- a/libclamav/mbox.c
24+++ b/libclamav/mbox.c
25@@ -91,7 +91,7 @@
26 #include <features.h>
27 #endif
28
29-#if __GLIBC__ == 2 && __GLIBC_MINOR__ >= 1
30+#if __GLIBC__ == 2 && __GLIBC_MINOR__ >= 1 && !defined(__UCLIBC__) || defined(__UCLIBC_HAS_BACKTRACE__)
31 #define HAVE_BACKTRACE
32 #endif
33 #endif
34--
352.14.3
36
37