]> git.armaanb.net Git - asd-repo.git/blob - extra/chromium/patches/musl-crashpad.patch
Switch browser to Chromium
[asd-repo.git] / extra / chromium / patches / musl-crashpad.patch
1 diff --git a/third_party/crashpad/crashpad/compat/linux/sys/ptrace.h b/third_party/crashpad/crashpad/compat/linux/sys/ptrace.h
2 index f8be372..5ab6e5b 100644
3 --- a/third_party/crashpad/crashpad/compat/linux/sys/ptrace.h
4 +++ b/third_party/crashpad/crashpad/compat/linux/sys/ptrace.h
5 @@ -17,7 +17,9 @@
6  
7  #include_next <sys/ptrace.h>
8  
9 +#if defined(__GLIBC__)
10  #include <sys/cdefs.h>
11 +#endif
12  
13  // https://sourceware.org/bugzilla/show_bug.cgi?id=22433
14  #if !defined(PTRACE_GET_THREAD_AREA) && !defined(PT_GET_THREAD_AREA) && \
15 diff --git a/third_party/crashpad/crashpad/util/linux/ptracer.cc b/third_party/crashpad/crashpad/util/linux/ptracer.cc
16 index 557e0d3..f41dc80 100644
17 --- a/third_party/crashpad/crashpad/util/linux/ptracer.cc
18 +++ b/third_party/crashpad/crashpad/util/linux/ptracer.cc
19 @@ -26,6 +26,7 @@
20  
21  #if defined(ARCH_CPU_X86_FAMILY)
22  #include <asm/ldt.h>
23 +#include <asm/ptrace-abi.h>
24  #endif
25  
26  namespace crashpad {