Skip to content

Commit

Permalink
Remove target_os nacl
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Aug 19, 2024
1 parent f820475 commit 9892ca4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ mod tests {
.collect()
}

#[cfg(any(target_os = "linux", target_os = "android", target_os = "nacl"))]
#[cfg(any(target_os = "linux", target_os = "android"))]
fn list_system_addrs() -> Vec<IpAddr> {
list_system_interfaces("ip", "addr")
.lines()
Expand Down
2 changes: 0 additions & 2 deletions src/posix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ pub fn do_broadcast(ifaddr: &ifaddrs) -> Option<IpAddr> {
target_os = "emscripten",
target_os = "fuchsia",
target_os = "hurd",
target_os = "nacl",
))]
let sockaddr = ifaddr.ifa_ifu;

Expand All @@ -33,7 +32,6 @@ pub fn do_broadcast(ifaddr: &ifaddrs) -> Option<IpAddr> {
target_os = "emscripten",
target_os = "fuchsia",
target_os = "hurd",
target_os = "nacl",
)))]
let sockaddr = ifaddr.ifa_dstaddr;

Expand Down

0 comments on commit 9892ca4

Please sign in to comment.