Skip to content

Commit 232caba

Browse files
Merge #1973
1973: if_nameindex: add `target_os = illumos` r=asomers a=jgallagher illumos [also has if_nameindex()](https://illumos.org/man/3XNET/if_nameindex); this change allows calling nix's wrappers when building for it. Co-authored-by: John Gallagher <[email protected]>
2 parents c5d6732 + 2c44523 commit 232caba

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/net/if_.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,7 @@ libc_bitflags!(
334334
target_os = "macos",
335335
target_os = "netbsd",
336336
target_os = "openbsd",
337+
target_os = "illumos",
337338
))]
338339
#[cfg_attr(docsrs, doc(cfg(all())))]
339340
mod if_nameindex {
@@ -465,5 +466,6 @@ mod if_nameindex {
465466
target_os = "macos",
466467
target_os = "netbsd",
467468
target_os = "openbsd",
469+
target_os = "illumos",
468470
))]
469471
pub use if_nameindex::*;

0 commit comments

Comments
 (0)