diff options
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-pyruvate/0001-riscv32-Define-O_LARGEFILE.patch')
-rw-r--r-- | meta-python/recipes-devtools/python/python3-pyruvate/0001-riscv32-Define-O_LARGEFILE.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-pyruvate/0001-riscv32-Define-O_LARGEFILE.patch b/meta-python/recipes-devtools/python/python3-pyruvate/0001-riscv32-Define-O_LARGEFILE.patch new file mode 100644 index 0000000000..0ecb50478e --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pyruvate/0001-riscv32-Define-O_LARGEFILE.patch | |||
@@ -0,0 +1,29 @@ | |||
1 | From 8c1251b57827c7e757079d6e9304570643e8e80a Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sat, 5 Mar 2022 22:18:49 -0800 | ||
4 | Subject: [PATCH] riscv32: Define O_LARGEFILE | ||
5 | |||
6 | Some applications (e.g. nix) use this define and expect it to come from libc | ||
7 | |||
8 | Upstream-Status: Submitted [https://github.com/rust-lang/libc/pull/2710] | ||
9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
10 | --- | ||
11 | src/unix/linux_like/linux/gnu/b32/riscv32/mod.rs | 2 ++ | ||
12 | 1 file changed, 2 insertions(+) | ||
13 | |||
14 | diff --git a/src/unix/linux_like/linux/gnu/b32/riscv32/mod.rs b/src/unix/linux_like/linux/gnu/b32/riscv32/mod.rs | ||
15 | index 4d551eb..feaa00a 100644 | ||
16 | --- a/src/unix/linux_like/linux/gnu/b32/riscv32/mod.rs | ||
17 | +++ b/src/unix/linux_like/linux/gnu/b32/riscv32/mod.rs | ||
18 | @@ -490,6 +490,8 @@ pub const FIONREAD: ::c_ulong = 21531; | ||
19 | pub const __SIZEOF_PTHREAD_MUTEX_T: usize = 40; | ||
20 | pub const __SIZEOF_PTHREAD_RWLOCK_T: usize = 56; | ||
21 | |||
22 | +pub const O_LARGEFILE: ::c_int = 0; | ||
23 | + | ||
24 | pub const SYS_read: ::c_long = 63; | ||
25 | pub const SYS_write: ::c_long = 64; | ||
26 | pub const SYS_close: ::c_long = 57; | ||
27 | -- | ||
28 | 2.35.1 | ||
29 | |||