diff options
author | Pietro Cerutti <gahr@FreeBSD.org> | 2014-04-23 08:29:23 +0000 |
---|---|---|
committer | Pietro Cerutti <gahr@FreeBSD.org> | 2014-04-23 08:29:23 +0000 |
commit | 6fcd7e316540eb0e824fc78d3f0199fe5c8e356e (patch) | |
tree | c839351a64ed3b44f5536aeeab5937a9e76f3458 /graphics/tulip | |
parent | b23f0076c0e58f737983379ccf1644d45fb7c375 (diff) | |
download | ports-6fcd7e316540eb0e824fc78d3f0199fe5c8e356e.tar.gz ports-6fcd7e316540eb0e824fc78d3f0199fe5c8e356e.zip |
Notes
Diffstat (limited to 'graphics/tulip')
-rw-r--r-- | graphics/tulip/files/patch-software-crash_handling_StackWalker.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/graphics/tulip/files/patch-software-crash_handling_StackWalker.cpp b/graphics/tulip/files/patch-software-crash_handling_StackWalker.cpp new file mode 100644 index 000000000000..ccbadd601741 --- /dev/null +++ b/graphics/tulip/files/patch-software-crash_handling_StackWalker.cpp @@ -0,0 +1,16 @@ +--- software/crash_handling/StackWalker.cpp.orig 2014-04-22 16:44:05.000000000 +0200 ++++ software/crash_handling/StackWalker.cpp 2014-04-22 16:46:01.000000000 +0200 +@@ -255,8 +255,13 @@ + char * real_name = abi::__cxa_demangle(mangled_name, 0, 0, &status); + + char *end; ++#if defined(__FreeBSD__) && __FreeBSD_version < 9000000 ++ int64_t runtimeAddr = static_cast<int64_t>(strtol(runtime_addr, &end, 16)); ++ int64_t runtimeOffset = static_cast<int64_t>(strtol(runtime_offset, &end, 0)); ++#else + int64_t runtimeAddr = static_cast<int64_t>(strtoll(runtime_addr, &end, 16)); + int64_t runtimeOffset = static_cast<int64_t>(strtoll(runtime_offset, &end, 0)); ++#endif + + if (runtimeAddr == 1 && i == (size - 1)) + break; |