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