mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
std.os.linux: delete unnecessary @compileError
Without this, it already fails to compile with a sufficiently helpful error message.
This commit is contained in:
parent
39ac40209b
commit
9e981c3ae5
1 changed files with 1 additions and 3 deletions
|
|
@ -1748,9 +1748,7 @@ pub fn settimeofday(tv: *const timeval, tz: *const timezone) usize {
|
|||
}
|
||||
|
||||
pub fn nanosleep(req: *const timespec, rem: ?*timespec) usize {
|
||||
if (native_arch == .riscv32) {
|
||||
@compileError("No nanosleep syscall on this architecture.");
|
||||
} else return syscall2(.nanosleep, @intFromPtr(req), @intFromPtr(rem));
|
||||
return syscall2(.nanosleep, @intFromPtr(req), @intFromPtr(rem));
|
||||
}
|
||||
|
||||
pub fn pause() usize {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue