aboutsummaryrefslogtreecommitdiff
path: root/extra/firefox/patches/fix-seccomp-bpf.patch
blob: da102b46a133f0dcbc0cee0573e352fe8d0cc317 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- a/security/sandbox/chromium/sandbox/linux/seccomp-bpf/trap.cc
+++ b/security/sandbox/chromium/sandbox/linux/seccomp-bpf/trap.cc
@@ -25,6 +25,11 @@
 #include "sandbox/linux/system_headers/linux_seccomp.h"
 #include "sandbox/linux/system_headers/linux_signal.h"
 
+// musl libc defines siginfo_t __si_fields instead of _sifields
+#if defined(OS_LINUX) && !defined(__GLIBC__)
+#define _sifields __si_fields
+#endif
+
 namespace {
 
 struct arch_sigsys {