aboutsummaryrefslogtreecommitdiffstats
path: root/testing/qt5-qtwebengine/qt-musl-siginfo_t.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2018-05-02 07:49:09 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2018-05-07 11:44:31 +0000
commit29eea5b912889bee4c52d1b721ae352839d87a35 (patch)
tree19a4a1e726e3149f2d47d1d3cf01e78737dd65dd /testing/qt5-qtwebengine/qt-musl-siginfo_t.patch
parent227d766c1976eca1e2ab1dd70ce6a32d3243069a (diff)
downloadaports-29eea5b912889bee4c52d1b721ae352839d87a35.tar.bz2
aports-29eea5b912889bee4c52d1b721ae352839d87a35.tar.xz
testing/qt5-qtwebengine: new aport
Diffstat (limited to 'testing/qt5-qtwebengine/qt-musl-siginfo_t.patch')
-rw-r--r--testing/qt5-qtwebengine/qt-musl-siginfo_t.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/testing/qt5-qtwebengine/qt-musl-siginfo_t.patch b/testing/qt5-qtwebengine/qt-musl-siginfo_t.patch
new file mode 100644
index 0000000000..fe760be166
--- /dev/null
+++ b/testing/qt5-qtwebengine/qt-musl-siginfo_t.patch
@@ -0,0 +1,18 @@
+There's a subtle difference in the internal name of siginfo_t fields
+between glibc and musl. The structure itself is equivalent, so it
+should suffice to add a macro to rename the field.
+
+--- qtwebengine/src/3rdparty/chromium/sandbox/linux/seccomp-bpf/trap.cc 2015-02-17 05:57:43.000000000 +0100
++++ qtwebengine/src/3rdparty/chromium/sandbox/linux/seccomp-bpf/trap.cc 2015-06-03 08:20:25.032716427 +0200
+@@ -22,6 +22,11 @@
+ #include "sandbox/linux/services/android_ucontext.h"
+ #endif
+
++// musl libc defines siginfo_t __si_fields instead of _sifields
++#if !defined(__GLIBC__)
++#define _sifields __si_fields
++#endif
++
+ namespace {
+
+ const int kCapacityIncrement = 20;