@@ -51,7 +51,7 @@ pub struct Statfs(type_of_statfs);
51
51
type fs_type_t = u32 ;
52
52
#[ cfg( target_os = "android" ) ]
53
53
type fs_type_t = libc:: c_ulong ;
54
- #[ cfg( all( target_os = "linux" , target_arch = "s390x" ) ) ]
54
+ #[ cfg( all( target_os = "linux" , target_arch = "s390x" , not ( target_env = "musl" ) ) ) ]
55
55
type fs_type_t = libc:: c_uint ;
56
56
#[ cfg( all( target_os = "linux" , target_env = "musl" ) ) ]
57
57
type fs_type_t = libc:: c_ulong ;
@@ -314,7 +314,7 @@ impl Statfs {
314
314
}
315
315
316
316
/// Optimal transfer block size
317
- #[ cfg( all( target_os = "linux" , target_arch = "s390x" ) ) ]
317
+ #[ cfg( all( target_os = "linux" , target_arch = "s390x" , not ( target_env = "musl" ) ) ) ]
318
318
pub fn optimal_transfer_size ( & self ) -> u32 {
319
319
self . 0 . f_bsize
320
320
}
@@ -367,7 +367,7 @@ impl Statfs {
367
367
368
368
/// Size of a block
369
369
// f_bsize on linux: https://github.com/torvalds/linux/blob/master/fs/nfs/super.c#L471
370
- #[ cfg( all( target_os = "linux" , target_arch = "s390x" ) ) ]
370
+ #[ cfg( all( target_os = "linux" , target_arch = "s390x" , not ( target_env = "musl" ) ) ) ]
371
371
pub fn block_size ( & self ) -> u32 {
372
372
self . 0 . f_bsize
373
373
}
@@ -440,7 +440,7 @@ impl Statfs {
440
440
}
441
441
442
442
/// Maximum length of filenames
443
- #[ cfg( all( target_os = "linux" , target_arch = "s390x" ) ) ]
443
+ #[ cfg( all( target_os = "linux" , target_arch = "s390x" , not ( target_env = "musl" ) ) ) ]
444
444
pub fn maximum_name_length ( & self ) -> u32 {
445
445
self . 0 . f_namelen
446
446
}
0 commit comments