Skip to content

Commit 1bc266a

Browse files
committed
ignore constants on musl when defined for newer kernel versions
1 parent 96552d3 commit 1bc266a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

libc-test/build.rs

+10
Original file line numberDiff line numberDiff line change
@@ -3762,6 +3762,7 @@ fn test_linux(target: &str) {
37623762
if name == "SECCOMP_GET_NOTIF_SIZES"
37633763
|| name == "SECCOMP_FILTER_FLAG_NEW_LISTENER"
37643764
|| name == "SECCOMP_FILTER_FLAG_TSYNC_ESRCH"
3765+
|| name == "PTP_SYS_OFFSET_EXTENDED"
37653766
|| name == "SECCOMP_USER_NOTIF_FLAG_CONTINUE" // requires >= 5.5
37663767
|| name == "SECCOMP_ADDFD_FLAG_SETFD" // requires >= 5.9
37673768
|| name == "SECCOMP_ADDFD_FLAG_SEND" // requires >= 5.9
@@ -3774,6 +3775,15 @@ fn test_linux(target: &str) {
37743775
|| name.starts_with("RTEXT_FILTER_")
37753776
|| name.starts_with("SO_J1939")
37763777
|| name.starts_with("SCM_J1939")
3778+
|| name == "PTP_CLOCK_GETCAPS2"
3779+
|| name == "PTP_EXTTS_REQUEST2"
3780+
|| name == "PTP_PEROUT_REQUEST2"
3781+
|| name == "PTP_ENABLE_PPS2"
3782+
|| name == "PTP_SYS_OFFSET2"
3783+
|| name == "PTP_PIN_GETFUNC2"
3784+
|| name == "PTP_PIN_SETFUNC2"
3785+
|| name == "PTP_SYS_OFFSET_PRECISE2"
3786+
|| name == "PTP_SYS_OFFSET_EXTENDED2"
37773787
{
37783788
return true;
37793789
}

0 commit comments

Comments
 (0)