summaryrefslogtreecommitdiff
path: root/repo/apps/chromium/no-getcontext.patch
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-05-31 11:04:17 +0100
committerdavidovski <david@davidovski.xyz>2022-05-31 11:04:17 +0100
commit871b2b573f01c1b3176a0f65458b3d281b41c437 (patch)
tree1311c682a9307026b039de9ba0e93bd22e35e2f5 /repo/apps/chromium/no-getcontext.patch
parentdfcdf333c80ae1d7171f6fa145fd87fecb8c5b73 (diff)
added pandoc and qt5
Diffstat (limited to 'repo/apps/chromium/no-getcontext.patch')
-rw-r--r--repo/apps/chromium/no-getcontext.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/repo/apps/chromium/no-getcontext.patch b/repo/apps/chromium/no-getcontext.patch
new file mode 100644
index 0000000..71c1e91
--- /dev/null
+++ b/repo/apps/chromium/no-getcontext.patch
@@ -0,0 +1,26 @@
+--- ./third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc
++++ ./third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc
+@@ -490,7 +490,9 @@
+ siginfo.si_code = SI_USER;
+ siginfo.si_pid = getpid();
+ ucontext_t context;
++#if defined(__GLIBC__)
+ getcontext(&context);
++#endif
+ return HandleSignal(sig, &siginfo, &context);
+ }
+
+@@ -675,9 +677,13 @@
+ sys_prctl(PR_SET_DUMPABLE, 1, 0, 0, 0);
+
+ CrashContext context;
++#if defined(__GLIBC__)
+ int getcontext_result = getcontext(&context.context);
+ if (getcontext_result)
+ return false;
++#else
++ return false;
++#endif
+
+ #if defined(__i386__)
+ // In CPUFillFromUContext in minidumpwriter.cc the stack pointer is retrieved