summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel <g2p.code@gmail.com>2017-07-20 00:28:08 +0200
committerGabriel <g2p.code@gmail.com>2017-07-20 00:28:08 +0200
commitf60ff2db55e1f529c6eb257a6e9c3fe6d8b3afc9 (patch)
tree1933924dd8e07808fdfaf3276f4dff7bbbb1b158
parent75e3696eca9df53ad94682bce6f821bbf8dde41a (diff)
downloadrust-libc-f60ff2db55e1f529c6eb257a6e9c3fe6d8b3afc9.tar.gz
Ignore newer kernel constants if building with musl
-rw-r--r--libc-test/build.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/libc-test/build.rs b/libc-test/build.rs
index 81ca584af0..217de9b1e7 100644
--- a/libc-test/build.rs
+++ b/libc-test/build.rs
@@ -430,6 +430,10 @@ fn main() {
"MADV_MERGEABLE" | "MADV_UNMERGEABLE" | "MADV_HWPOISON" | "IPV6_ADD_MEMBERSHIP" | "IPV6_DROP_MEMBERSHIP" | "IPV6_MULTICAST_LOOP" | "IPV6_V6ONLY" |
"MAP_STACK" | "RTLD_DEEPBIND" | "SOL_IPV6" | "SOL_ICMPV6" if uclibc => true,
+ // Musl uses old, patched kernel headers
+ "FALLOC_FL_COLLAPSE_RANGE" | "FALLOC_FL_ZERO_RANGE" |
+ "FALLOC_FL_INSERT_RANGE" | "FALLOC_FL_UNSHARE_RANGE" if musl => true,
+
// Defined by libattr not libc on linux (hard to test).
// See constant definition for more details.
"ENOATTR" if linux => true,