1 [PATCH] fix build on uClibc without UCLIBC_HAS_BACKTRACE
3 Backtrace support is only used for logging on signal errors, which
4 isn't really critical, so simply remove backtrace info if not
7 Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
10 1 file changed, 7 insertions(+)
12 Index: ofono-1.5/src/log.c
13 ===================================================================
14 --- ofono-1.5.orig/src/log.c
15 +++ ofono-1.5/src/log.c
20 +#include <features.h>
21 +/* backtrace support is optional on uClibc */
22 +#if !(defined(__UCLIBC__) && !defined (__UCLIBC_HAS_BACKTRACE__))
23 +#define HAVE_BACKTRACE
31 static void print_backtrace(unsigned int offset)
33 +#ifdef HAVE_BACKTRACE
41 +#endif /* HAVE_BACKTRACE */
44 static void signal_handler(int signo)