Skip to content

Commit

Permalink
Merge pull request #545 from julianaito/master
Browse files Browse the repository at this point in the history
OpenBSD/powerpc: clang does not define _CALL_*, use proper ifdef instead
  • Loading branch information
sergiud authored Sep 29, 2020
2 parents 40ab822 + 7001ab9 commit fcc9da2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stacktrace_powerpc-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ int GetStackTrace(void** result, int max_depth, int skip_count) {
#elif defined(__APPLE__) || ((defined(__linux) || defined(__linux__)) && defined(__PPC64__))
// This check is in case the compiler doesn't define _CALL_AIX/etc.
result[n++] = *(sp+2);
#elif defined(__linux)
#elif defined(__linux) || defined(__OpenBSD__)
// This check is in case the compiler doesn't define _CALL_SYSV.
result[n++] = *(sp+1);
#else
Expand Down

0 comments on commit fcc9da2

Please sign in to comment.