mirror of
https://github.com/ziglang/zig.git
synced 2026-01-20 22:35:24 +00:00
fix typo
Co-authored-by: Maciej Walczak <14938807+xackus@users.noreply.github.com>
This commit is contained in:
parent
06b2fee05e
commit
d788181a3b
@ -504,7 +504,7 @@ pub fn pwrite(fd: i32, buf: [*]const u8, count: usize, offset: u64) usize {
|
||||
);
|
||||
}
|
||||
} else {
|
||||
// Some architectures (eg. 64bit SPARC) pwrite is called pread64.
|
||||
// Some architectures (eg. 64bit SPARC) pwrite is called pwrite64.
|
||||
const S = if (!@hasField(SYS, "pwrite") and @hasField(SYS, "pwrite64")) .pwrite64 else .pwrite;
|
||||
return syscall4(
|
||||
S,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user