@@ -1086,51 +1086,36 @@ s! {
1086
1086
pub chan: :: c_uint,
1087
1087
pub rsv: [ :: c_uint; 5 ] ,
1088
1088
}
1089
- }
1090
1089
1091
- cfg_if ! {
1092
- if #[ cfg( any( target_arch = "sparc" , target_arch = "sparc64" ) ) ] {
1093
- s!{
1094
- pub struct ptp_clock_caps {
1095
- pub max_adj: :: c_int,
1096
- pub n_alarm: :: c_int,
1097
- pub n_ext_ts: :: c_int,
1098
- pub n_per_out: :: c_int,
1099
- pub pps: :: c_int,
1100
- pub n_pins: :: c_int,
1101
- pub cross_timestamping: :: c_int,
1102
- pub adjust_phase: :: c_int,
1103
- pub rsv: [ :: c_int; 12 ] ,
1104
- }
1105
- }
1106
- } else if #[ cfg( any( target_env = "musl" , target_env = "ohos" ) ) ] {
1107
- s!{
1108
- pub struct ptp_clock_caps {
1109
- pub max_adj: :: c_int,
1110
- pub n_alarm: :: c_int,
1111
- pub n_ext_ts: :: c_int,
1112
- pub n_per_out: :: c_int,
1113
- pub pps: :: c_int,
1114
- pub n_pins: :: c_int,
1115
- pub cross_timestamping: :: c_int,
1116
- pub rsv: [ :: c_int; 13 ] ,
1117
- }
1118
- }
1119
- } else {
1120
- s! {
1121
- pub struct ptp_clock_caps {
1122
- pub max_adj: :: c_int,
1123
- pub n_alarm: :: c_int,
1124
- pub n_ext_ts: :: c_int,
1125
- pub n_per_out: :: c_int,
1126
- pub pps: :: c_int,
1127
- pub n_pins: :: c_int,
1128
- pub cross_timestamping: :: c_int,
1129
- pub adjust_phase: :: c_int,
1130
- pub max_phase_adj: :: c_int,
1131
- pub rsv: [ :: c_int; 11 ] ,
1132
- }
1133
- }
1090
+ pub struct ptp_clock_caps {
1091
+ pub max_adj: :: c_int,
1092
+ pub n_alarm: :: c_int,
1093
+ pub n_ext_ts: :: c_int,
1094
+ pub n_per_out: :: c_int,
1095
+ pub pps: :: c_int,
1096
+ pub n_pins: :: c_int,
1097
+ pub cross_timestamping: :: c_int,
1098
+ #[ cfg( any( target_arch = "sparc" , target_arch = "sparc64" ) ) ]
1099
+ pub adjust_phase: :: c_int,
1100
+ #[ cfg( any( target_arch = "sparc" , target_arch = "sparc64" ) ) ]
1101
+ pub rsv: [ :: c_int; 12 ] ,
1102
+ #[ cfg( any( target_env = "musl" , target_env = "ohos" ) ) ]
1103
+ pub rsv: [ :: c_int; 13 ] ,
1104
+ #[ cfg( not( any(
1105
+ any( target_arch = "sparc" , target_arch = "sparc64" ) ,
1106
+ any( target_env = "musl" , target_env = "ohos" ) ,
1107
+ ) ) ) ]
1108
+ pub adjust_phase: :: c_int,
1109
+ #[ cfg( not( any(
1110
+ any( target_arch = "sparc" , target_arch = "sparc64" ) ,
1111
+ any( target_env = "musl" , target_env = "ohos" ) ,
1112
+ ) ) ) ]
1113
+ pub max_phase_adj: :: c_int,
1114
+ #[ cfg( not( any(
1115
+ any( target_arch = "sparc" , target_arch = "sparc64" ) ,
1116
+ any( target_env = "musl" , target_env = "ohos" ) ,
1117
+ ) ) ) ]
1118
+ pub rsv: [ :: c_int; 11 ] ,
1134
1119
}
1135
1120
}
1136
1121
0 commit comments