From f60ff2db55e1f529c6eb257a6e9c3fe6d8b3afc9 Mon Sep 17 00:00:00 2001 From: Gabriel Date: Thu, 20 Jul 2017 00:28:08 +0200 Subject: Ignore newer kernel constants if building with musl --- libc-test/build.rs | 4 ++++ 1 file changed, 4 insertions(+) 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, -- cgit v1.2.1