summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-support/libmemcached/files/crosscompile.patch
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <marcin.juszkiewicz@linaro.org>2013-04-23 08:44:50 +0000
committerMartin Jansa <Martin.Jansa@gmail.com>2013-04-26 19:43:57 +0200
commit0cedafff98a1fc62e249e5b3049de5bad39552de (patch)
tree188fdae14b4d18333cd3c31f0944f5257135a30f /meta-networking/recipes-support/libmemcached/files/crosscompile.patch
parent7bd0ff1d90bbe1b0c831bf9e7bc60fc2ad9181dd (diff)
downloadmeta-openembedded-0cedafff98a1fc62e249e5b3049de5bad39552de.tar.gz
libmemcached: add 1.0.15 and 1.0.7 versions
1.0.15 is latest 1.0.7 is required by HipHopVM Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
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 0000000000..63511bff5f
--- /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 }