@@ -64,7 +64,7 @@ type fs_type_t = u32;
64
64
type fs_type_t = libc:: c_ulong ;
65
65
#[ cfg( all( target_os = "linux" , target_arch = "s390x" ) ) ]
66
66
type fs_type_t = libc:: c_uint ;
67
- #[ cfg( all( target_os = "linux" , target_env = "musl" ) ) ]
67
+ #[ cfg( all( target_os = "linux" , target_env = "musl" , not ( target_arch = "s390x" ) ) ) ]
68
68
type fs_type_t = libc:: c_ulong ;
69
69
#[ cfg( all( target_os = "linux" , target_env = "uclibc" ) ) ]
70
70
type fs_type_t = libc:: c_int ;
@@ -342,7 +342,7 @@ impl Statfs {
342
342
/// Optimal transfer block size
343
343
#[ cfg( any(
344
344
target_os = "android" ,
345
- all( target_os = "linux" , target_env = "musl" )
345
+ all( target_os = "linux" , target_env = "musl" , not ( target_arch = "s390x" ) )
346
346
) ) ]
347
347
#[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
348
348
pub fn optimal_transfer_size ( & self ) -> libc:: c_ulong {
@@ -401,7 +401,7 @@ impl Statfs {
401
401
402
402
/// Size of a block
403
403
// f_bsize on linux: https://github.com/torvalds/linux/blob/master/fs/nfs/super.c#L471
404
- #[ cfg( all( target_os = "linux" , target_env = "musl" ) ) ]
404
+ #[ cfg( all( target_os = "linux" , target_env = "musl" , not ( target_arch = "s390x" ) ) ) ]
405
405
#[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
406
406
pub fn block_size ( & self ) -> libc:: c_ulong {
407
407
self . 0 . f_bsize
@@ -492,7 +492,7 @@ impl Statfs {
492
492
}
493
493
494
494
/// Maximum length of filenames
495
- #[ cfg( all( target_os = "linux" , target_env = "musl" ) ) ]
495
+ #[ cfg( all( target_os = "linux" , target_env = "musl" , not ( target_arch = "s390x" ) ) ) ]
496
496
#[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
497
497
pub fn maximum_name_length ( & self ) -> libc:: c_ulong {
498
498
self . 0 . f_namelen
0 commit comments