Skip to content

Commit

Permalink
ignore constants on musl when defined for newer kernel versions
Browse files Browse the repository at this point in the history
  • Loading branch information
folkertdev committed Jan 28, 2024
1 parent 96552d3 commit 1bc266a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions libc-test/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3762,6 +3762,7 @@ fn test_linux(target: &str) {
if name == "SECCOMP_GET_NOTIF_SIZES"
|| name == "SECCOMP_FILTER_FLAG_NEW_LISTENER"
|| name == "SECCOMP_FILTER_FLAG_TSYNC_ESRCH"
|| name == "PTP_SYS_OFFSET_EXTENDED"
|| name == "SECCOMP_USER_NOTIF_FLAG_CONTINUE" // requires >= 5.5
|| name == "SECCOMP_ADDFD_FLAG_SETFD" // requires >= 5.9
|| name == "SECCOMP_ADDFD_FLAG_SEND" // requires >= 5.9
Expand All @@ -3774,6 +3775,15 @@ fn test_linux(target: &str) {
|| name.starts_with("RTEXT_FILTER_")
|| name.starts_with("SO_J1939")
|| name.starts_with("SCM_J1939")
|| name == "PTP_CLOCK_GETCAPS2"
|| name == "PTP_EXTTS_REQUEST2"
|| name == "PTP_PEROUT_REQUEST2"
|| name == "PTP_ENABLE_PPS2"
|| name == "PTP_SYS_OFFSET2"
|| name == "PTP_PIN_GETFUNC2"
|| name == "PTP_PIN_SETFUNC2"
|| name == "PTP_SYS_OFFSET_PRECISE2"
|| name == "PTP_SYS_OFFSET_EXTENDED2"
{
return true;
}
Expand Down

0 comments on commit 1bc266a

Please sign in to comment.