Skip to content

Commit 20ecfc3

Browse files
committed
please musl
1 parent 5bcbb74 commit 20ecfc3

File tree

1 file changed

+5
-0
lines changed
  • src/unix/linux_like/linux

1 file changed

+5
-0
lines changed

src/unix/linux_like/linux/mod.rs

+5
Original file line numberDiff line numberDiff line change
@@ -819,9 +819,14 @@ s! {
819819
pub pps: ::c_int,
820820
pub n_pins: ::c_int,
821821
pub cross_timestamping: ::c_int,
822+
#[cfg(not(any(target_env = "musl", target_env = "ohos")))]
822823
pub adjust_phase: ::c_int,
824+
#[cfg(not(any(target_env = "musl", target_env = "ohos")))]
823825
pub max_phase_adj: ::c_int,
826+
#[cfg(not(any(target_env = "musl", target_env = "ohos")))]
824827
pub rsv: [::c_int; 11],
828+
#[cfg(any(target_env = "musl", target_env = "ohos"))]
829+
pub rsv: [::c_int; 13],
825830
}
826831

827832
pub struct ptp_extts_request {

0 commit comments

Comments
 (0)