diff options
Diffstat (limited to 'community/firefox/disable-moz-stackwalk.patch')
-rw-r--r-- | community/firefox/disable-moz-stackwalk.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/community/firefox/disable-moz-stackwalk.patch b/community/firefox/disable-moz-stackwalk.patch new file mode 100644 index 00000000000..54990d799fc --- /dev/null +++ b/community/firefox/disable-moz-stackwalk.patch @@ -0,0 +1,28 @@ +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 |