blob: a3ba469a4106cb970ec4a8d4302dbaedcae27ea6 [file] [log] [blame]
Andrew Geissler517393d2023-01-13 08:55:19 -06001Musl does not have stack unwinder like glibc therefore
2we can not assume that its always available on musl, we
3do need to check for target environment as well which
4could be musl or glibc.
5
6Upstream-Status: Pending
7Signed-off-by: Khem Raj <raj.khem@gmail.com>
8--- a/mozglue/misc/StackWalk.cpp
9+++ b/mozglue/misc/StackWalk.cpp
10@@ -44,7 +44,7 @@ using namespace mozilla;
11 # define MOZ_STACKWALK_SUPPORTS_MACOSX 0
12 #endif
13
14-#if (defined(linux) && \
15+#if (defined(linux) && defined(__GLIBC__) && \
16 ((defined(__GNUC__) && (defined(__i386) || defined(PPC))) || \
17 defined(HAVE__UNWIND_BACKTRACE)))
18 # define MOZ_STACKWALK_SUPPORTS_LINUX 1