From 80f647339c2f34051a42d666e89baa7e23a4960b Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN" Date: Fri, 19 Nov 2021 22:07:22 +0100 Subject: [PATCH] mbox: do not use backtrace if using uClibc without backtrace support Since uClibc can be configured without support for backtrace, disable the backtrace if we are building with a uClibc that was built without backtrace. This is a bit hacky, and would greatly benefit from a test in ./configure instead, but does nicely as a quick fix for now. Signed-off-by: "Yann E. MORIN" Signed-off-by: Bernd Kuhls [Bernd: rebased for 0.103.0] [Fabrice: retrieved from https://git.buildroot.net/buildroot/tree/package/clamav/0002-mbox-do-not-use-backtrace-if-using-uClibc-without-ba.patch] Signed-off-by: Fabrice Fontaine --- libclamav/mbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libclamav/mbox.c b/libclamav/mbox.c index a56ecabb0..56d99de81 100644 --- a/libclamav/mbox.c +++ b/libclamav/mbox.c @@ -92,7 +92,7 @@ #include #endif -#if __GLIBC__ == 2 && __GLIBC_MINOR__ >= 1 +#if __GLIBC__ == 2 && __GLIBC_MINOR__ >= 1 && !defined(__UCLIBC__) || defined(__UCLIBC_HAS_BACKTRACE__) #define HAVE_BACKTRACE #endif #endif