diff --git a/src/uu/stty/src/stty.rs b/src/uu/stty/src/stty.rs index 2bf2b2a083c..e16e6e36e02 100644 --- a/src/uu/stty/src/stty.rs +++ b/src/uu/stty/src/stty.rs @@ -605,11 +605,14 @@ fn print_terminal_size( ); } - #[cfg(any(target_os = "linux", target_os = "redox"))] - { - let line = termios.line_discipline; - printer.print(&translate!("stty-output-line", "line" => line)); - } + #[cfg(any( + target_os = "android", + target_os = "fuchsia", + target_os = "haiku", + target_os = "linux", + target_os = "redox" + ))] + printer.print(&translate!("stty-output-line", "line" => termios.line_discipline)); printer.flush(); }