Skip to content

Commit 59c5da6

Browse files
committed
Fix Hermit build
The Hermit build would fail if --no-default-features --features os-ext were passed as flags. This is because the cfg_io_source! macro assumed that IoSource was needed for os-ext, which is true for Unix due to the usage of the Unix pipe, but not true for Hermit (it doesn't support Unix pipes).
1 parent 38d1946 commit 59c5da6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/macros.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ macro_rules! cfg_net {
5151
macro_rules! cfg_io_source {
5252
($($item:item)*) => {
5353
$(
54-
#[cfg(any(feature = "net", all(any(unix, target_os = "hermit"), feature = "os-ext")))]
55-
#[cfg_attr(docsrs, doc(cfg(any(feature = "net", all(any(unix, target_os = "hermit"), feature = "os-ext")))))]
54+
#[cfg(any(feature = "net", all(unix, feature = "os-ext")))]
55+
#[cfg_attr(docsrs, doc(cfg(any(feature = "net", all(unix, feature = "os-ext")))))]
5656
$item
5757
)*
5858
}

0 commit comments

Comments
 (0)