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:
Nick Brown
2023-06-14 12:03:54 -07:00
committed by gVisor bot
parent fdaf777344
commit a435ed7c09
+1 -1
View File
@@ -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;