Skip to content

Commit

Permalink
Ignore sched_attr type for linux test
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Jan 5, 2024
1 parent 1ad9b1a commit 54aa479
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libc-test/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3676,6 +3676,12 @@ fn test_linux(target: &str) {
// /~https://github.com/torvalds/linux/commit/c05cd3645814724bdeb32a2b4d953b12bdea5f8c
"xdp_umem_reg_v1" => true,

// Is defined in `<linux/sched/types.h>` but if this file is included at the same time
// as `<sched.h>`, the `struct sched_param` is defined twice, causing the compilation to
// fail. The problem doesn't seem to be present in more recent versions of the linux
// kernel so we can drop this and test the type once this new version is used in CI.
"sched_attr" => true,

_ => false,
}
});
Expand Down

0 comments on commit 54aa479

Please sign in to comment.