From fa603f274a80773242c4cf77de502547ba6f7d6a Mon Sep 17 00:00:00 2001 From: Andrew Walbran Date: Thu, 7 Dec 2023 15:04:39 +0000 Subject: [PATCH] Fix test on more platforms. --- src/sys/termios.rs | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/src/sys/termios.rs b/src/sys/termios.rs index 3b6456623d..63c22a642b 100644 --- a/src/sys/termios.rs +++ b/src/sys/termios.rs @@ -944,9 +944,27 @@ mod test { #[cfg(any(linux_android, target_os = "haiku"))] c_line: 0x00, c_cc: [0; NCCS], - #[cfg(not(target_env = "musl"))] + #[cfg(not(any( + target_arch = "sparc", + target_arch = "sparc64", + target_arch = "mips", + target_arch = "mips32r6", + target_arch = "mips64", + target_arch = "mips64r6", + target_env = "musl", + target_os = "android" + )))] c_ispeed: 0, - #[cfg(not(target_env = "musl"))] + #[cfg(not(any( + target_arch = "sparc", + target_arch = "sparc64", + target_arch = "mips", + target_arch = "mips32r6", + target_arch = "mips64", + target_arch = "mips64r6", + target_env = "musl", + target_os = "android" + )))] c_ospeed: 0, #[cfg(target_env = "musl")] __c_ispeed: 0,