summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-support/libmemcached/files/crosscompile.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-networking/recipes-support/libmemcached/files/crosscompile.patch')
-rw-r--r--meta-networking/recipes-support/libmemcached/files/crosscompile.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/libmemcached/files/crosscompile.patch b/meta-networking/recipes-support/libmemcached/files/crosscompile.patch
new file mode 100644
index 000000000..63511bff5
--- /dev/null
+++ b/meta-networking/recipes-support/libmemcached/files/crosscompile.patch
@@ -0,0 +1,30 @@
1 libmemcached/backtrace.cc | 3 ++-
2 1 file changed, 2 insertions(+), 1 deletion(-)
3
4--- libmemcached-1.0.15.orig/libmemcached/backtrace.cc
5+++ libmemcached-1.0.15/libmemcached/backtrace.cc
6@@ -75,10 +75,11 @@ void custom_backtrace(void)
7 {
8 for (int x= 0; x < stack_frames; x++)
9 {
10 bool was_demangled= false;
11
12+#if USE_DEMANGLE == 1
13 if (USE_DEMANGLE)
14 {
15 #ifdef HAVE_DLFCN_H
16 Dl_info dlinfo;
17 if (dladdr(backtrace_buffer[x], &dlinfo))
18@@ -107,11 +108,11 @@ void custom_backtrace(void)
19 dlinfo.dli_fname);
20 }
21 }
22 #endif
23 }
24-
25+#endif
26 if (was_demangled == false)
27 {
28 fprintf(stderr, "?%d %p in %s\n", x, backtrace_buffer[x], symbollist[x]);
29 }
30 }