Skip to content

Commit f920867

Browse files
folkertdevtgross35
andcommitted
Apply suggestions from code review
Co-authored-by: Trevor Gross <[email protected]>
1 parent 3f9d5c1 commit f920867

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

libc-test/build.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3794,10 +3794,10 @@ fn test_linux(target: &str) {
37943794
}
37953795
if musl {
37963796
// FIXME: Requires >= 5.0 kernel headers
3797-
if name == "SECCOMP_GET_NOTIF_SIZES"
3797+
if name == "PTP_SYS_OFFSET_EXTENDED"
3798+
|| name == "SECCOMP_GET_NOTIF_SIZES"
37983799
|| name == "SECCOMP_FILTER_FLAG_NEW_LISTENER"
37993800
|| name == "SECCOMP_FILTER_FLAG_TSYNC_ESRCH"
3800-
|| name == "PTP_SYS_OFFSET_EXTENDED"
38013801
|| name == "SECCOMP_USER_NOTIF_FLAG_CONTINUE" // requires >= 5.5
38023802
|| name == "SECCOMP_ADDFD_FLAG_SETFD" // requires >= 5.9
38033803
|| name == "SECCOMP_ADDFD_FLAG_SEND" // requires >= 5.9
@@ -3811,12 +3811,12 @@ fn test_linux(target: &str) {
38113811
|| name.starts_with("SO_J1939")
38123812
|| name.starts_with("SCM_J1939")
38133813
|| name == "PTP_CLOCK_GETCAPS2"
3814+
|| name == "PTP_ENABLE_PPS2"
38143815
|| name == "PTP_EXTTS_REQUEST2"
38153816
|| name == "PTP_PEROUT_REQUEST2"
3816-
|| name == "PTP_ENABLE_PPS2"
3817-
|| name == "PTP_SYS_OFFSET2"
38183817
|| name == "PTP_PIN_GETFUNC2"
38193818
|| name == "PTP_PIN_SETFUNC2"
3819+
|| name == "PTP_SYS_OFFSET2"
38203820
|| name == "PTP_SYS_OFFSET_PRECISE2"
38213821
|| name == "PTP_SYS_OFFSET_EXTENDED2"
38223822
{

src/unix/linux_like/linux/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4289,6 +4289,7 @@ cfg_if! {
42894289
}
42904290
}
42914291

4292+
// enum ptp_pin_function
42924293
pub const PTP_PF_NONE: ::c_uint = 0;
42934294
pub const PTP_PF_EXTTS: ::c_uint = 1;
42944295
pub const PTP_PF_PEROUT: ::c_uint = 2;

0 commit comments

Comments
 (0)