Merge pull request #545 from julianaito/master

OpenBSD/powerpc: clang does not define _CALL_*, use proper ifdef instead
This commit is contained in:
Sergiu Deitsch 2020-09-29 22:19:20 +02:00 committed by GitHub
commit fcc9da24a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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