chromium/fix-ppc64-linux-syscalls-headers.patch
Than Ngo dd7b387573 - update to 127.0.6533.88
- refreshed ppc64le patches
- workaround for build error on aarch64 F41
2024-07-31 10:30:27 +02:00

23 lines
784 B
Diff

Index: chromium-127.0.6533.72/sandbox/linux/system_headers/ppc64_linux_syscalls.h
===================================================================
--- chromium-127.0.6533.72.orig/sandbox/linux/system_headers/ppc64_linux_syscalls.h
+++ chromium-127.0.6533.72/sandbox/linux/system_headers/ppc64_linux_syscalls.h
@@ -8,5 +8,18 @@
#include <asm/unistd.h>
//TODO: is it necessary to redefine syscall numbers for PPC64?
+// Needed for Ubuntu/Debian/Centos/RHEL:
+#if !defined(__NR_shmget)
+#define __NR_shmget 395
+#endif
+#if !defined(__NR_shmdt)
+#define __NR_shmdt 398
+#endif
+#if !defined(__NR_shmctl)
+#define __NR_shmctl 396
+#endif
+#if !defined(__NR_shmat)
+#define __NR_shmat 397
+#endif
#endif // SANDBOX_LINUX_SYSTEM_HEADERS_PPC64_LINUX_SYSCALLS_H_