Skip to content

Commit 7f1c5ec

Browse files
authored
Merge pull request RustPython#3422 from devnexen/fbsd_build_fix
fix freebsd build wrong imports
2 parents 625886f + cf7b6ee commit 7f1c5ec

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

stdlib/src/resource.rs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,18 @@ mod resource {
3535
#[pyattr]
3636
use libc::RLIMIT_RTTIME;
3737

38-
#[cfg(any(target_os = "freebsd", target_os = "netbsd"))]
38+
#[cfg(any(
39+
target_os = "freebsd",
40+
target_os = "netbsd",
41+
target_os = "solaris",
42+
target_os = "illumos"
43+
))]
3944
#[pyattr]
4045
use libc::{RLIMIT_NPTS, RLIMIT_SBSIZE, RLIMIT_SWAP};
4146

42-
#[cfg(any(target_os = "freebsd", target_os = "solaris", target_os = "illumos"))]
47+
#[cfg(any(target_os = "solaris", target_os = "illumos"))]
4348
#[pyattr]
44-
use libc::{RLIMIT_NPTS, RLIMIT_SBSIZE, RLIMIT_SWAP, RLIMIT_VMEM};
49+
use libc::RLIMIT_VMEM;
4550

4651
#[cfg(any(target_os = "linux", target_os = "emscripten", target_os = "freebds"))]
4752
#[pyattr]

0 commit comments

Comments
 (0)