Skip to content

Commit 6ad33aa

Browse files
committed
Fix preadv2 implementation for x86_64 x32
Signed-off-by: Jiahao XU <[email protected]>
1 parent dd0f271 commit 6ad33aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/unix.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ mod linux {
419419
let res = syscall(SYS_preadv2, fd, iov, iovcnt, offset, 0, flags);
420420

421421
#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
422-
let res = syscall(SYS_preadv2, fd, iov, iovcnt, offset, 0, flags);
422+
let res = syscall(SYS_preadv2, fd, iov, iovcnt, offset, flags);
423423

424424
#[cfg(not(target_arch = "x86_64"))]
425425
let res = syscall(

0 commit comments

Comments
 (0)