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 @@ -241,7 +241,11 @@ cfg_if! {
241241}
242242
243243cfg_if ! {
244- if #[ cfg( any( target_env = "gnu" , target_os = "android" ) ) ] {
244+ if #[ cfg( any(
245+ target_env = "gnu" ,
246+ target_os = "android" ,
247+ all( target_env = "musl" , musl_v1_2_3)
248+ ) ) ] {
245249 s! {
246250 pub struct statx {
247251 pub stx_mask: crate :: __u32,
@@ -1658,7 +1662,11 @@ cfg_if! {
16581662}
16591663
16601664cfg_if ! {
1661- if #[ cfg( any( target_env = "gnu" , target_os = "android" ) ) ] {
1665+ if #[ cfg( any(
1666+ target_env = "gnu" ,
1667+ target_os = "android" ,
1668+ all( target_env = "musl" , musl_v1_2_3)
1669+ ) ) ] {
16621670 pub const AT_STATX_SYNC_TYPE : c_int = 0x6000 ;
16631671 pub const AT_STATX_SYNC_AS_STAT : c_int = 0x0000 ;
16641672 pub const AT_STATX_FORCE_SYNC : c_int = 0x2000 ;
@@ -2168,7 +2176,11 @@ cfg_if! {
21682176
21692177// The statx syscall, available on some libcs.
21702178cfg_if ! {
2171- if #[ cfg( any( target_env = "gnu" , target_os = "android" ) ) ] {
2179+ if #[ cfg( any(
2180+ target_env = "gnu" ,
2181+ target_os = "android" ,
2182+ all( target_env = "musl" , musl_v1_2_3)
2183+ ) ) ] {
21722184 extern "C" {
21732185 pub fn statx(
21742186 dirfd: c_int,
You can’t perform that action at this time.
0 commit comments