blob: 66f916023b74b6ec1fab39b007876312bec8afd2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
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 <unistd.h>
#include <stdlib.h>
#include <string.h>
+#ifdef HAVE_EXECINFO_H
#include <execinfo.h>
+#endif
#include <dlfcn.h>
#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 */
}
|