Skip to content

Commit d6e8930

Browse files
committed
netbsd/openbsd build fix
1 parent b80cec7 commit d6e8930

File tree

3 files changed

+22
-19
lines changed

3 files changed

+22
-19
lines changed

Cargo.lock

Lines changed: 16 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

stdlib/src/resource.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,11 @@ mod resource {
4242
target_os = "illumos"
4343
))]
4444
#[pyattr]
45-
use libc::{RLIMIT_NPTS, RLIMIT_SBSIZE, RLIMIT_SWAP};
45+
use libc::RLIMIT_SBSIZE;
46+
47+
#[cfg(any(target_os = "freebsd", target_os = "solaris", target_os = "illumos"))]
48+
#[pyattr]
49+
use libc::{RLIMIT_NPTS, RLIMIT_SWAP};
4650

4751
#[cfg(any(target_os = "solaris", target_os = "illumos"))]
4852
#[pyattr]

stdlib/src/socket.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,8 @@ mod _socket {
6161
#[pyattr]
6262
use c::{AF_UNIX, SO_REUSEPORT};
6363

64-
#[cfg(not(any(target_os = "freebsd", target_os = "netbsd", target_os = "openbsd")))]
6564
#[pyattr]
66-
use c::{AI_ADDRCONFIG, AI_ALL, AI_NUMERICHOST, AI_NUMERICSERV, AI_PASSIVE};
65+
use c::{AI_ADDRCONFIG, AI_NUMERICHOST, AI_NUMERICSERV, AI_PASSIVE};
6766

6867
#[cfg(not(target_os = "redox"))]
6968
#[pyattr]

0 commit comments

Comments
 (0)