summaryrefslogtreecommitdiff
path: root/libc-test
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2020-02-25 14:35:50 +0900
committerYuki Okushi <huyuumi.dev@gmail.com>2020-02-25 16:44:21 +0900
commit804a11dc8941444c7bd5b8f6cd1cf70f7c28de06 (patch)
tree76ae1e7e4820137a4e14672205155acc311bc8c5 /libc-test
parent101724cb21ee3f7bce954ad548ca60834e5a165a (diff)
downloadrust-libc-804a11dc8941444c7bd5b8f6cd1cf70f7c28de06.tar.gz
Ignore `sys/io.h` on gnuabihf
Diffstat (limited to 'libc-test')
-rw-r--r--libc-test/build.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/libc-test/build.rs b/libc-test/build.rs
index 7668cbecc7..e4ae31cfc7 100644
--- a/libc-test/build.rs
+++ b/libc-test/build.rs
@@ -2085,6 +2085,7 @@ fn test_linux(target: &str) {
let x86_32 = target.contains("i686");
let x86_64 = target.contains("x86_64");
let aarch64_musl = target.contains("aarch64") && musl;
+ let gnuabihf = target.contains("gnueabihf");
let mut cfg = ctest_cfg();
cfg.define("_GNU_SOURCE", None);
@@ -2182,7 +2183,9 @@ fn test_linux(target: &str) {
"errno.h",
// `sys/io.h` is only available on x86*, Alpha, IA64, and 32-bit
// ARM: https://bugzilla.redhat.com/show_bug.cgi?id=1116162
- [x86_64 || x86_32 || arm]: "sys/io.h",
+ // Also unavailable on gnuabihf with glibc 2.30.
+ // https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=6b33f373c7b9199e00ba5fbafd94ac9bfb4337b1
+ [(x86_64 || x86_32 || arm) && !gnuabihf]: "sys/io.h",
// `sys/reg.h` is only available on x86 and x86_64
[x86_64 || x86_32]: "sys/reg.h",
// sysctl system call is deprecated and not available on musl