Skip to content

Commit f74db2b

Browse files
folkertdevtgross35
andauthored
Apply suggestions from code review
Co-authored-by: Trevor Gross <t.gross35@gmail.com>
1 parent b087c94 commit f74db2b

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

libc-test/build.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -3759,10 +3759,10 @@ fn test_linux(target: &str) {
37593759
}
37603760
if musl {
37613761
// FIXME: Requires >= 5.0 kernel headers
3762-
if name == "SECCOMP_GET_NOTIF_SIZES"
3762+
if name == "PTP_SYS_OFFSET_EXTENDED"
3763+
|| name == "SECCOMP_GET_NOTIF_SIZES"
37633764
|| name == "SECCOMP_FILTER_FLAG_NEW_LISTENER"
37643765
|| name == "SECCOMP_FILTER_FLAG_TSYNC_ESRCH"
3765-
|| name == "PTP_SYS_OFFSET_EXTENDED"
37663766
|| name == "SECCOMP_USER_NOTIF_FLAG_CONTINUE" // requires >= 5.5
37673767
|| name == "SECCOMP_ADDFD_FLAG_SETFD" // requires >= 5.9
37683768
|| name == "SECCOMP_ADDFD_FLAG_SEND" // requires >= 5.9
@@ -3776,12 +3776,12 @@ fn test_linux(target: &str) {
37763776
|| name.starts_with("SO_J1939")
37773777
|| name.starts_with("SCM_J1939")
37783778
|| name == "PTP_CLOCK_GETCAPS2"
3779+
|| name == "PTP_ENABLE_PPS2"
37793780
|| name == "PTP_EXTTS_REQUEST2"
37803781
|| name == "PTP_PEROUT_REQUEST2"
3781-
|| name == "PTP_ENABLE_PPS2"
3782-
|| name == "PTP_SYS_OFFSET2"
37833782
|| name == "PTP_PIN_GETFUNC2"
37843783
|| name == "PTP_PIN_SETFUNC2"
3784+
|| name == "PTP_SYS_OFFSET2"
37853785
|| name == "PTP_SYS_OFFSET_PRECISE2"
37863786
|| name == "PTP_SYS_OFFSET_EXTENDED2"
37873787
{

src/unix/linux_like/linux/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -3835,6 +3835,7 @@ cfg_if! {
38353835
}
38363836
}
38373837

3838+
// enum ptp_pin_function
38383839
pub const PTP_PF_NONE: ::c_uint = 0;
38393840
pub const PTP_PF_EXTTS: ::c_uint = 1;
38403841
pub const PTP_PF_PEROUT: ::c_uint = 2;

0 commit comments

Comments
 (0)