diff -Naur connman-1.32/src/backtrace.c connman-1.32.new/src/backtrace.c --- connman-1.32/src/backtrace.c 2016-04-18 00:04:30.000000000 -0700 +++ connman-1.32.new/src/backtrace.c 2016-06-17 13:55:08.257320750 -0700 @@ -29,7 +29,9 @@ #include #include #include +#ifdef HAVE_EXECINFO_H #include +#endif #include #include "connman.h" @@ -37,6 +39,7 @@ void print_backtrace(const char* program_path, const char* program_exec, unsigned int offset) { +#ifdef HAVE_EXECINFO_H void *frames[99]; size_t n_ptrs; unsigned int i; @@ -135,4 +138,5 @@ close(outfd[1]); close(infd[0]); +#endif /* HAVE_EXECINFO_H */ }