Skip to content

Commit 3dd6e14

Browse files
committed
update ptp_sys_offset_extended to latest version
it changed recently torvalds/linux@c259aca#diff-721f436093b6e07475c0784886e2092c2d0bc269397e0efd279fdf943ea55f27R175
1 parent 3c22e5e commit 3dd6e14

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

libc-test/build.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3704,7 +3704,9 @@ fn test_linux(target: &str) {
37043704
if musl && ty == "seccomp_notif_sizes" {
37053705
return true;
37063706
}
3707-
if musl && ty == "ptp_sys_offset_extended" {
3707+
3708+
// FIXME: CI has old headers
3709+
if ty == "ptp_sys_offset_extended" {
37083710
return true;
37093711
}
37103712

src/unix/linux_like/linux/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ pub type pthread_key_t = ::c_uint;
1717
pub type pthread_once_t = ::c_int;
1818
pub type pthread_spinlock_t = ::c_int;
1919
pub type __kernel_fsid_t = __c_anonymous__kernel_fsid_t;
20+
pub type __kernel_clockid_t = ::c_int;
2021

2122
pub type __u8 = ::c_uchar;
2223
pub type __u16 = ::c_ushort;
@@ -839,7 +840,8 @@ s! {
839840

840841
pub struct ptp_sys_offset_extended {
841842
pub n_samples: ::c_uint,
842-
pub rsv: [::c_uint; 3],
843+
pub clockid: __kernel_clockid_t,
844+
pub rsv: [::c_uint; 2],
843845
pub ts: [[ptp_clock_time; 3]; PTP_MAX_SAMPLES as usize],
844846
}
845847

0 commit comments

Comments
 (0)