From 6fcd7e316540eb0e824fc78d3f0199fe5c8e356e Mon Sep 17 00:00:00 2001 From: Pietro Cerutti Date: Wed, 23 Apr 2014 08:29:23 +0000 Subject: - Fix build on < 9.0 --- .../files/patch-software-crash_handling_StackWalker.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 graphics/tulip/files/patch-software-crash_handling_StackWalker.cpp (limited to 'graphics/tulip') 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(strtol(runtime_addr, &end, 16)); ++ int64_t runtimeOffset = static_cast(strtol(runtime_offset, &end, 0)); ++#else + int64_t runtimeAddr = static_cast(strtoll(runtime_addr, &end, 16)); + int64_t runtimeOffset = static_cast(strtoll(runtime_offset, &end, 0)); ++#endif + + if (runtimeAddr == 1 && i == (size - 1)) + break; -- cgit v1.2.3