Skip to content

Commit 04b7312

Browse files
committed
skip some musl constants
1 parent 101b587 commit 04b7312

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

libc-test/build.rs

+15
Original file line numberDiff line numberDiff line change
@@ -2357,6 +2357,9 @@ fn test_linux(target: &str) {
23572357

23582358
cfg.skip_struct(move |ty| {
23592359
match ty {
2360+
// Not available in the current sanitized musl kernel headers:
2361+
"input_mask" if musl => true,
2362+
23602363
// FIXME: is this necessary?
23612364
"sockaddr_nl" if musl => true,
23622365

@@ -2406,6 +2409,18 @@ fn test_linux(target: &str) {
24062409
| "F_SEAL_GROW"
24072410
| "F_SEAL_WRITE" => true,
24082411

2412+
// The musl-sanitized kernel headers used in CI
2413+
// target the Linux kernel 3.x and do not contain the
2414+
// following constants:
2415+
//
2416+
// Require Linux kernel 4.x:
2417+
| "RENAME_NOREPLACE"
2418+
| "RENAME_EXCHANGE"
2419+
| "RENAME_WHITEOUT"
2420+
// Require Linux kernel 5.x:
2421+
| "MSG_COPY"
2422+
=> true,
2423+
24092424
// FIXME: deprecated: not available in any header
24102425
// See: https://github.com/rust-lang/libc/issues/1356
24112426
"ENOATTR" => true,

0 commit comments

Comments
 (0)