1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00

- Fix build on < 9.0

This commit is contained in:
Pietro Cerutti 2014-04-23 08:29:23 +00:00
parent b23f0076c0
commit 6fcd7e3165
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=351915

View File

@ -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;