mirror of
https://github.com/ziglang/zig.git
synced 2025-12-24 07:03:11 +00:00
fix pwrite on 32-bit linux
This commit is contained in:
parent
a83aab5209
commit
7c8d0cc678
@ -417,7 +417,7 @@ pub fn ftruncate(fd: i32, length: u64) usize {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn pwrite(fd: i32, buf: [*]const u8, count: usize, offset: usize) usize {
|
||||
pub fn pwrite(fd: i32, buf: [*]const u8, count: usize, offset: u64) usize {
|
||||
if (@hasField(SYS, "pwrite64")) {
|
||||
if (require_aligned_register_pair) {
|
||||
return syscall6(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user