Skip to content

Commit 4d3b4b9

Browse files
3v1n0sylvestre
authored andcommitted
stty: Use libc definition for OFILL
Until nix won't include it we can safely just rely on the libc definition
1 parent e84fc9e commit 4d3b4b9

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

src/uu/stty/src/flags.rs

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -125,16 +125,17 @@ pub const OUTPUT_FLAGS: &[Flag<O>] = &[
125125
target_os = "linux",
126126
target_os = "macos"
127127
))]
128+
#[cfg(any(
129+
target_os = "android",
130+
target_os = "haiku",
131+
target_os = "ios",
132+
target_os = "linux",
133+
target_os = "macos"
134+
))]
128135
// Not supported by nix.
129136
// See: https://github.com/nix-rust/nix/pull/2701
130-
// #[cfg(any(
131-
// target_os = "android",
132-
// target_os = "haiku",
133-
// target_os = "ios",
134-
// target_os = "linux",
135-
// target_os = "macos"
136-
// ))]
137-
// Flag::new("ofill", O::OFILL),
137+
// FIXME: Flag::new("ofill", O::OFILL),
138+
Flag::new("ofill", O::from_bits_retain(nix::libc::OFILL)),
138139
Flag::new("ofdel", O::OFDEL),
139140
#[cfg(any(
140141
target_os = "android",

0 commit comments

Comments
 (0)