diff --git a/src/uu/stty/Cargo.toml b/src/uu/stty/Cargo.toml index 131f66804e3..93d0cca7e52 100644 --- a/src/uu/stty/Cargo.toml +++ b/src/uu/stty/Cargo.toml @@ -15,11 +15,11 @@ readme.workspace = true path = "src/stty.rs" doctest = false -[target.'cfg(unix)'.dependencies] +[target.'cfg(all(unix, not(any(target_os = "aix", target_os = "dragonfly"))))'.dependencies] clap = { workspace = true } fluent = { workspace = true } nix = { workspace = true, features = ["ioctl", "term"] } -rustix = { workspace = true, features = ["termios"] } +rustix = { workspace = true, features = ["fs", "termios"] } uucore = { workspace = true, features = ["parser"] } [build-dependencies] diff --git a/src/uu/stty/src/stty.rs b/src/uu/stty/src/stty.rs index 009830a1de1..d3bb601bb32 100644 --- a/src/uu/stty/src/stty.rs +++ b/src/uu/stty/src/stty.rs @@ -14,7 +14,7 @@ // spell-checker:ignore notaflag notacombo notabaud // spell-checker:ignore baudrate TCGETS Winsize tcgetwinsize tcsetwinsize -#![cfg(unix)] +#![cfg(all(unix, not(any(target_os = "aix", target_os = "dragonfly"))))] mod flags;