Skip to content

Commit f60ff2d

Browse files
committed
Ignore newer kernel constants if building with musl
1 parent 75e3696 commit f60ff2d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libc-test/build.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,10 @@ fn main() {
430430
"MADV_MERGEABLE" | "MADV_UNMERGEABLE" | "MADV_HWPOISON" | "IPV6_ADD_MEMBERSHIP" | "IPV6_DROP_MEMBERSHIP" | "IPV6_MULTICAST_LOOP" | "IPV6_V6ONLY" |
431431
"MAP_STACK" | "RTLD_DEEPBIND" | "SOL_IPV6" | "SOL_ICMPV6" if uclibc => true,
432432

433+
// Musl uses old, patched kernel headers
434+
"FALLOC_FL_COLLAPSE_RANGE" | "FALLOC_FL_ZERO_RANGE" |
435+
"FALLOC_FL_INSERT_RANGE" | "FALLOC_FL_UNSHARE_RANGE" if musl => true,
436+
433437
// Defined by libattr not libc on linux (hard to test).
434438
// See constant definition for more details.
435439
"ENOATTR" if linux => true,

0 commit comments

Comments
 (0)