File tree 1 file changed +15
-0
lines changed
1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -2357,6 +2357,9 @@ fn test_linux(target: &str) {
2357
2357
2358
2358
cfg. skip_struct ( move |ty| {
2359
2359
match ty {
2360
+ // Not available in the current sanitized musl kernel headers:
2361
+ "input_mask" if musl => true ,
2362
+
2360
2363
// FIXME: is this necessary?
2361
2364
"sockaddr_nl" if musl => true ,
2362
2365
@@ -2406,6 +2409,18 @@ fn test_linux(target: &str) {
2406
2409
| "F_SEAL_GROW"
2407
2410
| "F_SEAL_WRITE" => true ,
2408
2411
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
+
2409
2424
// FIXME: deprecated: not available in any header
2410
2425
// See: https://github.com/rust-lang/libc/issues/1356
2411
2426
"ENOATTR" => true ,
You can’t perform that action at this time.
0 commit comments