Skip to content

Commit b2ee1bb

Browse files
committed
Limit pwritev2 to linux
1 parent 14be3db commit b2ee1bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/wasi/src/filesystem/unix.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ pub(crate) fn advise(file: impl AsFd, offset: u64, len: u64, advice: Advice) ->
6060

6161
pub(crate) fn append_cursor_unspecified(file: impl AsFd, data: &[u8]) -> io::Result<usize> {
6262
// On Linux, use `pwritev2`.
63-
#[cfg(any(target_os = "android", target_os = "linux"))]
63+
#[cfg(target_os = "linux")]
6464
{
6565
use rustix::io::{Errno, ReadWriteFlags, pwritev2};
6666
use std::io::IoSlice;

0 commit comments

Comments
 (0)