Skip to content

Commit b0a4559

Browse files
committed
Ignore sys/io.h on gnuabihf
1 parent 584492b commit b0a4559

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libc-test/build.rs

+2-1
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,7 @@ 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+
[(x86_64 || x86_32 || arm) && !gnuabihf]: "sys/io.h",
21852186
// `sys/reg.h` is only available on x86 and x86_64
21862187
[x86_64 || x86_32]: "sys/reg.h",
21872188
// sysctl system call is deprecated and not available on musl

0 commit comments

Comments
 (0)