Skip to content

Commit

Permalink
upgrade nix to 0.28.0
Browse files Browse the repository at this point in the history
this fixes builds on s390x+musl
  • Loading branch information
selfisekai committed Feb 25, 2024
1 parent 02095dc commit b26a5a5
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 26 deletions.
46 changes: 30 additions & 16 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,6 @@ windows = { version = "0.42.0", features = [
version = "0.17.1"
features = ["extension-module", "abi3-py37"]

[target.'cfg(unix)'.dependencies]
nix = { version = "0.25.0" }
[target.'cfg(unix)'.dependencies.nix]
version = "0.28.0"
features = ["net"]
9 changes: 1 addition & 8 deletions src/linux.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use crate::ip_to_string;
use crate::types::{
AddrPairs, IfAddrs, ADDR_ADDR, AF_ALG, AF_INET, AF_INET6, AF_NETLINK, AF_PACKET, AF_VSOCK,
BROADCAST_ADDR, MASK_ADDR, PEER_ADDR,
Expand Down Expand Up @@ -71,13 +70,7 @@ pub fn linux_ifaddresses(if_name: &str) -> Result<IfAddrs, Box<dyn std::error::E
}

if let Some(inet_addr) = address.as_sockaddr_in() {
add_to_types_mat(
AF_INET,
&ip_to_string(inet_addr.ip()),
name,
&mut types_mat,
&mut any,
);
add_to_types_mat(AF_INET, &inet_addr.ip(), name, &mut types_mat, &mut any);
}

#[cfg(not(any(target_os = "ios", target_os = "macos")))]
Expand Down

0 comments on commit b26a5a5

Please sign in to comment.