Skip to content

Commit 6e52296

Browse files
sthibaulSteveLauC
authored andcommitted
hurd: Enable ifaddrs
1 parent 14a5dcb commit 6e52296

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/ifaddrs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ pub struct InterfaceAddress {
3333
}
3434

3535
cfg_if! {
36-
if #[cfg(any(linux_android, target_os = "emscripten", target_os = "fuchsia"))] {
36+
if #[cfg(any(linux_android, target_os = "emscripten", target_os = "fuchsia", target_os = "hurd"))] {
3737
fn get_ifu_from_sockaddr(info: &libc::ifaddrs) -> *const libc::sockaddr {
3838
info.ifa_ifu
3939
}

src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,8 @@ feature! {
134134

135135
#[cfg(any(linux_android,
136136
bsd,
137-
solarish))]
137+
solarish,
138+
target_os = "hurd"))]
138139
#[deny(missing_docs)]
139140
pub mod ifaddrs;
140141
#[cfg(not(target_os = "redox"))]

0 commit comments

Comments
 (0)