package/zic: bump version to 2015e
[buildroot-gz.git] / package / clamav / 0003-backtrace-uClibc.patch
blob82ad67307d41ad2163dd0066d6a9ee7cdce51ee7
1 mbox: do not use backtrace if using uClibc without backtrace support
3 Since uClibc can be configured without support for backtrace, disable
4 the backtrace if we are building with a uClibc that was built without
5 backtrace.
7 This is a bit hacky, and would greatly benefit from a test in ./configure
8 instead, but does nicely as a quick fix for now.
10 Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
11 diff -durN clamav-0.98.4.orig/libclamav/mbox.c clamav-0.98.4/libclamav/mbox.c
12 --- clamav-0.98.4.orig/libclamav/mbox.c 2014-05-21 17:25:05.000000000 +0200
13 +++ clamav-0.98.4/libclamav/mbox.c 2014-11-16 17:21:04.885383286 +0100
14 @@ -83,7 +83,7 @@
15 #include <features.h>
16 #endif
18 -#if __GLIBC__ == 2 && __GLIBC_MINOR__ >= 1
19 +#if __GLIBC__ == 2 && __GLIBC_MINOR__ >= 1 && !defined(__UCLIBC__) || defined(__UCLIBC_HAS_BACKTRACE__)
20 #define HAVE_BACKTRACE
21 #endif
22 #endif