Skip to content

Commit 46a0dea

Browse files
committed
Exclude flock() from wasi/redox
1 parent 2c8588d commit 46a0dea

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stdlib/src/fcntl.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ mod fcntl {
141141
}
142142
}
143143

144+
// XXX: at the time of writing, wasi and redox don't have the necessary constants/function
145+
#[cfg(not(any(target_os = "wasi", target_os = "redox")))]
144146
#[pyfunction]
145147
fn flock(fd: i32, operation: i32, vm: &VirtualMachine) -> PyResult {
146148
let ret = unsafe { libc::flock(fd, operation) };

0 commit comments

Comments
 (0)