summaryrefslogtreecommitdiff
path: root/user/cbindgen/ppc-libc-hugetlb.patch
diff options
context:
space:
mode:
Diffstat (limited to 'user/cbindgen/ppc-libc-hugetlb.patch')
-rw-r--r--user/cbindgen/ppc-libc-hugetlb.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/user/cbindgen/ppc-libc-hugetlb.patch b/user/cbindgen/ppc-libc-hugetlb.patch
new file mode 100644
index 000000000..8a1bfe78d
--- /dev/null
+++ b/user/cbindgen/ppc-libc-hugetlb.patch
@@ -0,0 +1,12 @@
+diff -ur a/src/unix/linux_like/linux/musl/b32/powerpc.rs b/src/unix/linux_like/linux/musl/b32/powerpc.rs
+--- a/libc-0.2.144/src/unix/linux_like/linux/musl/b32/powerpc.rs 2024-09-02 00:25:08.560000000 +0000
++++ b/libc-0.2.144/src/unix/linux_like/linux/musl/b32/powerpc.rs 2024-09-02 00:25:41.080000000 +0000
+@@ -377,8 +377,6 @@
+
+ pub const EXTPROC: ::tcflag_t = 0x10000000;
+
+-pub const MAP_HUGETLB: ::c_int = 0x040000;
+-
+ pub const F_GETLK: ::c_int = 12;
+ pub const F_GETOWN: ::c_int = 9;
+ pub const F_SETLK: ::c_int = 13;