mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Set kOLargeFile for RISC-V architecture
This is required to get these tests building on a Fuchsia + RISC-V architecture. The constant's value was extracted from: https://github.com/riscvarchive/riscv-musl/blob/3fe7e2c75df78eef42dcdc352a55757729f451e2/arch/riscv64/bits/fcntl.h#L16 PiperOrigin-RevId: 540340091
This commit is contained in:
+1
-1
@@ -30,7 +30,7 @@ namespace testing {
|
||||
|
||||
// O_LARGEFILE as defined by Linux. glibc tries to be clever by setting it to 0
|
||||
// because "it isn't needed", even though Linux can return it via F_GETFL.
|
||||
#if defined(__x86_64__)
|
||||
#if defined(__x86_64__) || defined(__riscv)
|
||||
constexpr int kOLargeFile = 00100000;
|
||||
#elif defined(__aarch64__)
|
||||
constexpr int kOLargeFile = 00400000;
|
||||
|
||||
Reference in New Issue
Block a user