Skip to content

Commit cf06364

Browse files
committed
Move LOCK_* constants to non-wasi/non-redox part
1 parent 106e204 commit cf06364

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

stdlib/src/fcntl.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,15 @@ mod fcntl {
2020
// I_LINK, I_UNLINK, I_PLINK, I_PUNLINK
2121

2222
#[pyattr]
23-
use libc::{
24-
FD_CLOEXEC, F_GETFD, F_GETFL, F_SETFD, F_SETFL, LOCK_EX, LOCK_NB, LOCK_SH, LOCK_UN,
25-
};
23+
use libc::{FD_CLOEXEC, F_GETFD, F_GETFL, F_SETFD, F_SETFL};
2624

2725
#[cfg(not(target_os = "wasi"))]
2826
#[pyattr]
2927
use libc::{F_DUPFD, F_DUPFD_CLOEXEC, F_GETLK, F_SETLK, F_SETLKW};
3028

3129
#[cfg(not(any(target_os = "wasi", target_os = "redox")))]
3230
#[pyattr]
33-
use libc::{F_GETOWN, F_RDLCK, F_SETOWN, F_UNLCK, F_WRLCK};
31+
use libc::{F_GETOWN, F_RDLCK, F_SETOWN, F_UNLCK, F_WRLCK, LOCK_EX, LOCK_NB, LOCK_SH, LOCK_UN};
3432

3533
#[cfg(target_vendor = "apple")]
3634
#[pyattr]

0 commit comments

Comments
 (0)