diff --git a/lib/std/os/linux/riscv32.zig b/lib/std/os/linux/riscv32.zig index 219eb5cc191e6f352a0d21a17c26c795f67e8b9d..b8023c5d5c7bfe5f9371883e05341f79020511ab 100644 --- a/lib/std/os/linux/riscv32.zig +++ b/lib/std/os/linux/riscv32.zig @@ -188,7 +188,10 @@ pub const Elf_Symndx = u32; pub const MMAP2_UNIT = 4096; -pub const VDSO = struct {}; +pub const VDSO = struct { + pub const CGT_SYM = "__vdso_clock_gettime"; + pub const CGT_VER = "LINUX_4.15"; +}; /// TODO pub const ucontext_t = void; diff --git a/lib/std/os/linux/riscv64.zig b/lib/std/os/linux/riscv64.zig index fc0893d5c15408dd2b22eb72bc77bd9ee01d9799..8c3c8fe289115cce1a27461923bd950295ed16bc 100644 --- a/lib/std/os/linux/riscv64.zig +++ b/lib/std/os/linux/riscv64.zig @@ -215,7 +215,10 @@ pub const Stat = extern struct { pub const Elf_Symndx = u32; -pub const VDSO = struct {}; +pub const VDSO = struct { + pub const CGT_SYM = "__vdso_clock_gettime"; + pub const CGT_VER = "LINUX_4.15"; +}; /// TODO pub const ucontext_t = void;