diff options
author | gahr <gahr@FreeBSD.org> | 2014-04-23 16:29:23 +0800 |
---|---|---|
committer | gahr <gahr@FreeBSD.org> | 2014-04-23 16:29:23 +0800 |
commit | 14d6956b0279167a57e5bdd36071b3d5a62974c0 (patch) | |
tree | c839351a64ed3b44f5536aeeab5937a9e76f3458 /graphics | |
parent | 80b81ab1d748d7b79c2fe49ef492291acf4dadb0 (diff) | |
download | freebsd-ports-gnome-14d6956b0279167a57e5bdd36071b3d5a62974c0.tar.gz freebsd-ports-gnome-14d6956b0279167a57e5bdd36071b3d5a62974c0.tar.zst freebsd-ports-gnome-14d6956b0279167a57e5bdd36071b3d5a62974c0.zip |
- Fix build on < 9.0
Diffstat (limited to 'graphics')
-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; |