Skip to content

Commit dbbf82c

Browse files
folkertdevFolkert de Vries
authored and
Folkert de Vries
committed
update ptp_sys_offset_extended to latest version
it changed recently torvalds/linux@c259aca#diff-721f436093b6e07475c0784886e2092c2d0bc269397e0efd279fdf943ea55f27R175
1 parent 97b4269 commit dbbf82c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

libc-test/build.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -3702,7 +3702,9 @@ fn test_linux(target: &str) {
37023702
if musl && ty == "seccomp_notif_sizes" {
37033703
return true;
37043704
}
3705-
if musl && ty == "ptp_sys_offset_extended" {
3705+
3706+
// FIXME: CI has old headers
3707+
if ty == "ptp_sys_offset_extended" {
37063708
return true;
37073709
}
37083710

src/unix/linux_like/linux/mod.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ pub type pthread_key_t = ::c_uint;
1919
pub type pthread_once_t = ::c_int;
2020
pub type pthread_spinlock_t = ::c_int;
2121
pub type __kernel_fsid_t = __c_anonymous__kernel_fsid_t;
22+
pub type __kernel_clockid_t = ::c_int;
2223

2324
pub type __u8 = ::c_uchar;
2425
pub type __u16 = ::c_ushort;
@@ -847,7 +848,8 @@ s! {
847848

848849
pub struct ptp_sys_offset_extended {
849850
pub n_samples: ::c_uint,
850-
pub rsv: [::c_uint; 3],
851+
pub clockid: __kernel_clockid_t,
852+
pub rsv: [::c_uint; 2],
851853
pub ts: [[ptp_clock_time; 3]; PTP_MAX_SAMPLES as usize],
852854
}
853855

0 commit comments

Comments
 (0)