mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-14 09:47:08 +02:00
29 lines
982 B
Diff
29 lines
982 B
Diff
upstream bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1882329
|
|
diff --git a/mozglue/misc/StackWalk.cpp b/mozglue/misc/StackWalk.cpp
|
|
index 2fefc5b..57c56e6 100644
|
|
--- a/mozglue/misc/StackWalk.cpp
|
|
+++ b/mozglue/misc/StackWalk.cpp
|
|
@@ -46,5 +46,12 @@ using namespace mozilla;
|
|
|
|
+#if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1)
|
|
+# define HAVE___LIBC_STACK_END 1
|
|
+#else
|
|
+# define HAVE___LIBC_STACK_END 0
|
|
+#endif
|
|
+
|
|
#if (defined(linux) && \
|
|
((defined(__GNUC__) && (defined(__i386) || defined(PPC))) || \
|
|
- defined(HAVE__UNWIND_BACKTRACE)))
|
|
+ defined(HAVE__UNWIND_BACKTRACE)) && \
|
|
+ (HAVE___LIBC_STACK_END || ANDROID))
|
|
# define MOZ_STACKWALK_SUPPORTS_LINUX 1
|
|
@@ -54,8 +61,2 @@ using namespace mozilla;
|
|
|
|
-#if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1)
|
|
-# define HAVE___LIBC_STACK_END 1
|
|
-#else
|
|
-# define HAVE___LIBC_STACK_END 0
|
|
-#endif
|
|
-
|
|
#if HAVE___LIBC_STACK_END
|