From 0d2e1a63e8c9b47d3cbf1c86b2ed2078eff335c1 Mon Sep 17 00:00:00 2001 From: oech3 <79379754+oech3@users.noreply.github.com> Date: Thu, 22 Oct 2026 03:05:43 +0900 Subject: [PATCH] stty: extend cfg for discipline --- src/uu/stty/src/stty.rs | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) 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(); }