]> rtime.felk.cvut.cz Git - coffee/buildroot.git/blob - package/clamav/0002-mbox-do-not-use-backtrace-if-using-uClibc-without-ba.patch
lrzsz: install symlinks for XMODEM and YMODEM
[coffee/buildroot.git] / package / clamav / 0002-mbox-do-not-use-backtrace-if-using-uClibc-without-ba.patch
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
5  support
6
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
9 backtrace.
10
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.
13
14 Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
15 ---
16  libclamav/mbox.c | 2 +-
17  1 file changed, 1 insertion(+), 1 deletion(-)
18
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
23 @@ -98,7 +98,7 @@
24  #include <features.h>
25  #endif
26  
27 -#if __GLIBC__ == 2 && __GLIBC_MINOR__ >= 1
28 +#if __GLIBC__ == 2 && __GLIBC_MINOR__ >= 1 && !defined(__UCLIBC__) || defined(__UCLIBC_HAS_BACKTRACE__)
29  #define HAVE_BACKTRACE
30  #endif
31  #endif
32 -- 
33 2.14.3
34