Skip to content

Commit 0d2e1a6

Browse files
committed
stty: extend cfg for discipline
1 parent 2f8b194 commit 0d2e1a6

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

‎src/uu/stty/src/stty.rs‎

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -605,11 +605,14 @@ fn print_terminal_size(
605605
);
606606
}
607607

608-
#[cfg(any(target_os = "linux", target_os = "redox"))]
609-
{
610-
let line = termios.line_discipline;
611-
printer.print(&translate!("stty-output-line", "line" => line));
612-
}
608+
#[cfg(any(
609+
target_os = "android",
610+
target_os = "fuchsia",
611+
target_os = "haiku",
612+
target_os = "linux",
613+
target_os = "redox"
614+
))]
615+
printer.print(&translate!("stty-output-line", "line" => termios.line_discipline));
613616
printer.flush();
614617
}
615618

0 commit comments

Comments
 (0)