Skip to content

Commit b39dfaa

Browse files
committed
conditional compilation for musl
1 parent c57f452 commit b39dfaa

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
@@ -665,9 +665,14 @@ s! {
665665
pub pps: ::c_int,
666666
pub n_pins: ::c_int,
667667
pub cross_timestamping: ::c_int,
668+
#[cfg(target_env = "gnu")]
668669
pub adjust_phase: ::c_int,
670+
#[cfg(target_env = "gnu")]
669671
pub max_phase_adj: ::c_int,
672+
#[cfg(target_env = "gnu")]
670673
pub rsv: [::c_int; 11],
674+
#[cfg(any(target_env = "musl", target_env = "ohos"))]
675+
pub rsv: [::c_int; 13],
671676
}
672677

673678
pub struct ptp_extts_request {

0 commit comments

Comments
 (0)