Commit 68bb788df5
Changed files (1)
lib
std
lib/std/os/linux.zig
@@ -1465,7 +1465,9 @@ pub fn settimeofday(tv: *const timeval, tz: *const timezone) usize {
}
pub fn nanosleep(req: *const timespec, rem: ?*timespec) usize {
- return syscall2(.nanosleep, @intFromPtr(req), @intFromPtr(rem));
+ if (native_arch == .riscv32) {
+ @compileError("No nanosleep syscall on this architecture.");
+ } else return syscall2(.nanosleep, @intFromPtr(req), @intFromPtr(rem));
}
pub fn pause() usize {