Skip to content

Commit b12c35f

Browse files
committed
Skip test for mode field of ipc_perm
1 parent bf5d838 commit b12c35f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libc-test/build.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2231,6 +2231,7 @@ fn test_linux(target: &str) {
22312231
let aarch64_musl = target.contains("aarch64") && musl;
22322232
let gnuabihf = target.contains("gnueabihf");
22332233
let x86_64_gnux32 = target.contains("gnux32") && x86_64;
2234+
let riscv64 = target.contains("riscv64");
22342235

22352236
let mut cfg = ctest_cfg();
22362237
cfg.define("_GNU_SOURCE", None);
@@ -2657,7 +2658,7 @@ fn test_linux(target: &str) {
26572658
(struct_ == "timex" && field.starts_with("__unused")) ||
26582659
// FIXME: It now takes mode_t since glibc 2.31 on some targets.
26592660
(struct_ == "ipc_perm" && field == "mode"
2660-
&& ((x86_64 || i686 || arm) && gnu || x86_64_gnux32)
2661+
&& ((x86_64 || i686 || arm || riscv64) && gnu || x86_64_gnux32)
26612662
)
26622663
});
26632664

0 commit comments

Comments
 (0)