diff options
author | Yuki Okushi <huyuumi.dev@gmail.com> | 2020-02-25 14:35:50 +0900 |
---|---|---|
committer | Yuki Okushi <huyuumi.dev@gmail.com> | 2020-02-25 16:44:21 +0900 |
commit | 804a11dc8941444c7bd5b8f6cd1cf70f7c28de06 (patch) | |
tree | 76ae1e7e4820137a4e14672205155acc311bc8c5 /libc-test | |
parent | 101724cb21ee3f7bce954ad548ca60834e5a165a (diff) | |
download | rust-libc-804a11dc8941444c7bd5b8f6cd1cf70f7c28de06.tar.gz |
Ignore `sys/io.h` on gnuabihf
Diffstat (limited to 'libc-test')
-rw-r--r-- | libc-test/build.rs | 5 |
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 |