aboutsummaryrefslogtreecommitdiffstats
path: root/community/qt5-qtwebengine/qt-musl-pread-pwrite.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2018-12-28 09:50:44 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2018-12-28 11:27:30 +0000
commita347a358bcff5bd7943e76d001c8f3d4b1a4524b (patch)
tree7aeb7929f961d44853667b587b928619a40cc5e4 /community/qt5-qtwebengine/qt-musl-pread-pwrite.patch
parent50faa0a5811956ff86e1b9e94a76b3474ad2d91b (diff)
downloadaports-a347a358bcff5bd7943e76d001c8f3d4b1a4524b.tar.bz2
aports-a347a358bcff5bd7943e76d001c8f3d4b1a4524b.tar.xz
community/qt5-qtwebengine: build fix
Diffstat (limited to 'community/qt5-qtwebengine/qt-musl-pread-pwrite.patch')
-rw-r--r--community/qt5-qtwebengine/qt-musl-pread-pwrite.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/community/qt5-qtwebengine/qt-musl-pread-pwrite.patch b/community/qt5-qtwebengine/qt-musl-pread-pwrite.patch
new file mode 100644
index 0000000000..c5dcfd812a
--- /dev/null
+++ b/community/qt5-qtwebengine/qt-musl-pread-pwrite.patch
@@ -0,0 +1,20 @@
+diff --git a/src/3rdparty/chromium/third_party/lss/linux_syscall_support.h b/src/3rdparty/chromium/third_party/lss/linux_syscall_support.h
+index 5d9c2e8..e81e7b4 100644
+--- a/src/3rdparty/chromium/third_party/lss/linux_syscall_support.h
++++ b/src/3rdparty/chromium/third_party/lss/linux_syscall_support.h
+@@ -1794,6 +1794,15 @@ struct kernel_statfs {
+ /* End of s390/s390x definitions */
+ #endif
+
++#ifndef __GLIBC__
++ /* For Musl libc pread/pread is the same as pread64/pwrite64 */
++#ifndef __NR_pread
++#define __NR_pread __NR_pread64
++#endif
++#ifndef __NR_pwrite
++#define __NR_pwrite __NR_pwrite64
++#endif
++#endif /* ifndef __GLIBC__ */
+
+ /* After forking, we must make sure to only call system calls. */
+ #if defined(__BOUNDED_POINTERS__)