Skip to content

Commit

Permalink
Fix test on more platforms.
Browse files Browse the repository at this point in the history
  • Loading branch information
qwandor committed Dec 7, 2023
1 parent 5035f4c commit fa603f2
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions src/sys/termios.rs
Expand Up @@ -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,
Expand Down

0 comments on commit fa603f2

Please sign in to comment.