summaryrefslogtreecommitdiff
path: root/user/cbindgen/ppc-libc-hugetlb.patch
diff options
context:
space:
mode:
authorZach van Rijn <me@zv.io>2024-09-02 00:44:06 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2024-10-17 00:58:49 -0500
commitc96bfdf277cc43235d90b0cbfcd09b026cef1f1d (patch)
treec0460aafa0c2c2a09198c460f23d7df042dfaeef /user/cbindgen/ppc-libc-hugetlb.patch
parent32cc832aa5be04fb3f23e9a51db7ee8bf2d0d927 (diff)
downloadpackages-c96bfdf277cc43235d90b0cbfcd09b026cef1f1d.tar.gz
packages-c96bfdf277cc43235d90b0cbfcd09b026cef1f1d.tar.bz2
packages-c96bfdf277cc43235d90b0cbfcd09b026cef1f1d.tar.xz
packages-c96bfdf277cc43235d90b0cbfcd09b026cef1f1d.zip
user/cbindgen: Fix build on PPC32
cbindgen vendors the libc crate, so this needs the same fix as the Rust 1.7x bootstrap compilers. Closes: #1252 Ref: #1248
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;