File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -234,7 +234,11 @@ cfg_if! {
234
234
}
235
235
236
236
cfg_if ! {
237
- if #[ cfg( any( target_env = "gnu" , target_os = "android" ) ) ] {
237
+ if #[ cfg( any(
238
+ target_env = "gnu" ,
239
+ target_os = "android" ,
240
+ all( target_env = "musl" , musl_v1_2_3)
241
+ ) ) ] {
238
242
s! {
239
243
pub struct statx {
240
244
pub stx_mask: crate :: __u32,
@@ -1663,7 +1667,11 @@ cfg_if! {
1663
1667
}
1664
1668
1665
1669
cfg_if ! {
1666
- if #[ cfg( any( target_env = "gnu" , target_os = "android" ) ) ] {
1670
+ if #[ cfg( any(
1671
+ target_env = "gnu" ,
1672
+ target_os = "android" ,
1673
+ all( target_env = "musl" , musl_v1_2_3)
1674
+ ) ) ] {
1667
1675
pub const AT_STATX_SYNC_TYPE : c_int = 0x6000 ;
1668
1676
pub const AT_STATX_SYNC_AS_STAT : c_int = 0x0000 ;
1669
1677
pub const AT_STATX_FORCE_SYNC : c_int = 0x2000 ;
@@ -2181,7 +2189,11 @@ cfg_if! {
2181
2189
2182
2190
// The statx syscall, available on some libcs.
2183
2191
cfg_if ! {
2184
- if #[ cfg( any( target_env = "gnu" , target_os = "android" ) ) ] {
2192
+ if #[ cfg( any(
2193
+ target_env = "gnu" ,
2194
+ target_os = "android" ,
2195
+ all( target_env = "musl" , musl_v1_2_3)
2196
+ ) ) ] {
2185
2197
extern "C" {
2186
2198
pub fn statx(
2187
2199
dirfd: c_int,
You can’t perform that action at this time.
0 commit comments