Skip to content

Commit

Permalink
Fix Hermit build
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
Thomasdezeeuw committed Aug 10, 2024
1 parent 38d1946 commit 59c5da6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ macro_rules! cfg_net {
macro_rules! cfg_io_source {
($($item:item)*) => {
$(
#[cfg(any(feature = "net", all(any(unix, target_os = "hermit"), feature = "os-ext")))]
#[cfg_attr(docsrs, doc(cfg(any(feature = "net", all(any(unix, target_os = "hermit"), feature = "os-ext")))))]
#[cfg(any(feature = "net", all(unix, feature = "os-ext")))]
#[cfg_attr(docsrs, doc(cfg(any(feature = "net", all(unix, feature = "os-ext")))))]
$item
)*
}
Expand Down

0 comments on commit 59c5da6

Please sign in to comment.