Skip to content

Commit fa603f2

Browse files
committed
Fix test on more platforms.
1 parent 5035f4c commit fa603f2

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

src/sys/termios.rs

+20-2
Original file line numberDiff line numberDiff line change
@@ -944,9 +944,27 @@ mod test {
944944
#[cfg(any(linux_android, target_os = "haiku"))]
945945
c_line: 0x00,
946946
c_cc: [0; NCCS],
947-
#[cfg(not(target_env = "musl"))]
947+
#[cfg(not(any(
948+
target_arch = "sparc",
949+
target_arch = "sparc64",
950+
target_arch = "mips",
951+
target_arch = "mips32r6",
952+
target_arch = "mips64",
953+
target_arch = "mips64r6",
954+
target_env = "musl",
955+
target_os = "android"
956+
)))]
948957
c_ispeed: 0,
949-
#[cfg(not(target_env = "musl"))]
958+
#[cfg(not(any(
959+
target_arch = "sparc",
960+
target_arch = "sparc64",
961+
target_arch = "mips",
962+
target_arch = "mips32r6",
963+
target_arch = "mips64",
964+
target_arch = "mips64r6",
965+
target_env = "musl",
966+
target_os = "android"
967+
)))]
950968
c_ospeed: 0,
951969
#[cfg(target_env = "musl")]
952970
__c_ispeed: 0,

0 commit comments

Comments
 (0)