projects/aports·blob master · refs

20 lines · 827 B

1diff --git a/src/3rdparty/chromium/third_party/lss/linux_syscall_support.h b/src/3rdparty/chromium/third_party/lss/linux_syscall_support.h
2index 5d9c2e8..e81e7b4 100644
3--- a/src/3rdparty/chromium/third_party/lss/linux_syscall_support.h
4+++ b/src/3rdparty/chromium/third_party/lss/linux_syscall_support.h
5@@ -1835,6 +1835,15 @@ struct kernel_statfs {
6 /* End of s390/s390x definitions */
7 #endif
8
9+#ifndef __GLIBC__
10+ /* For Musl libc pread/pread is the same as pread64/pwrite64 */
11+#ifndef __NR_pread
12+#define __NR_pread __NR_pread64
13+#endif
14+#ifndef __NR_pwrite
15+#define __NR_pwrite __NR_pwrite64
16+#endif
17+#endif /* ifndef __GLIBC__ */
18
19 /* After forking, we must make sure to only call system calls. */
20 #if defined(__BOUNDED_POINTERS__)