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;