From 7001ab9ecba9060c3502b2872a3bab0ed3c6e8f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charl=C3=A8ne=20Wendling?= Date: Mon, 27 Apr 2020 15:50:32 +0200 Subject: [PATCH] OpenBSD/powerpc: clang does not define _CALL_* use proper ifdef OpenBSD/macppc uses now clang by default and does not define _CALL_SYSV, use the alternative for such platforms. --- src/stacktrace_powerpc-inl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stacktrace_powerpc-inl.h b/src/stacktrace_powerpc-inl.h index 03b9108..7b2bbd1 100644 --- a/src/stacktrace_powerpc-inl.h +++ b/src/stacktrace_powerpc-inl.h @@ -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