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 NOTE: based on patch from Peter Korsgaard <jacmet@sunsite.dk>
9 Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
11 --- ofono-1.7.orig/src/log.c
12 +++ ofono-1.7/src/log.c
18 +#if defined(__GLIBC__) && !(defined(__UCLIBC__) && !defined (__UCLIBC_HAS_BACKTRACE__))
19 +#define HAVE_BACKTRACE
28 +#ifdef HAVE_BACKTRACE
29 static void print_backtrace(unsigned int offset)
37 +#ifdef HAVE_BACKTRACE
38 signal_setup(signal_handler);
46 +#ifdef HAVE_BACKTRACE
47 signal_setup(SIG_DFL);