Skip to content

Commit 24a8d8b

Browse files
committed
Ignore sys/io.h on gnuabihf
1 parent 46910d7 commit 24a8d8b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

libc-test/build.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2084,6 +2084,7 @@ fn test_linux(target: &str) {
20842084
let x86_32 = target.contains("i686");
20852085
let x86_64 = target.contains("x86_64");
20862086
let aarch64_musl = target.contains("aarch64") && musl;
2087+
let gnuabihf = target.contains("gnueabihf");
20872088

20882089
let mut cfg = ctest_cfg();
20892090
cfg.define("_GNU_SOURCE", None);
@@ -2181,7 +2182,9 @@ fn test_linux(target: &str) {
21812182
"errno.h",
21822183
// `sys/io.h` is only available on x86*, Alpha, IA64, and 32-bit
21832184
// ARM: https://bugzilla.redhat.com/show_bug.cgi?id=1116162
2184-
[x86_64 || x86_32 || arm]: "sys/io.h",
2185+
// Also unavailable on gnuabihf with glibc 2.30.
2186+
// https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=6b33f373c7b9199e00ba5fbafd94ac9bfb4337b1
2187+
[(x86_64 || x86_32 || arm) && !gnuabihf]: "sys/io.h",
21852188
// `sys/reg.h` is only available on x86 and x86_64
21862189
[x86_64 || x86_32]: "sys/reg.h",
21872190
// sysctl system call is deprecated and not available on musl

0 commit comments

Comments
 (0)