rebuild geeqie
[oi-userland.git] / components / runtime / openjdk-8 / patches / 0031-patch-hotspot_src_os_solaris_vm_decoder__solaris.cpp.patch
blobc0527213f8dd2be16f5144bdafaa900bbd25267a
1 $NetBSD: patch-hotspot_src_os_solaris_vm_decoder__solaris.cpp,v 1.1 2015/07/03 20:40:59 fhajny Exp $
3 Avoid libdemangle with GCC.
5 --- hotspot/src/os/solaris/vm/decoder_solaris.cpp.orig 2013-02-19 23:21:59.000000000 +0000
6 +++ hotspot/src/os/solaris/vm/decoder_solaris.cpp
7 @@ -27,6 +27,11 @@
8 #include <demangle.h>
10 bool ElfDecoder::demangle(const char* symbol, char *buf, int buflen) {
11 +#ifdef SPARC_WORKS
12 return !cplus_demangle(symbol, buf, (size_t)buflen);
13 +#else
14 + memcpy(buf, symbol, (size_t)buflen);
15 + return 0;
16 +#endif