@@ -64,7 +64,7 @@ type fs_type_t = u32;
6464type fs_type_t = libc:: c_ulong ;
6565#[ cfg( all( target_os = "linux" , target_arch = "s390x" ) ) ]
6666type 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" ) ) ) ]
6868type fs_type_t = libc:: c_ulong ;
6969#[ cfg( all( target_os = "linux" , target_env = "uclibc" ) ) ]
7070type fs_type_t = libc:: c_int ;
@@ -342,7 +342,7 @@ impl Statfs {
342342 /// Optimal transfer block size
343343 #[ cfg( any(
344344 target_os = "android" ,
345- all( target_os = "linux" , target_env = "musl" )
345+ all( target_os = "linux" , target_env = "musl" , not ( target_arch = "s390x" ) )
346346 ) ) ]
347347 #[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
348348 pub fn optimal_transfer_size ( & self ) -> libc:: c_ulong {
@@ -401,7 +401,7 @@ impl Statfs {
401401
402402 /// Size of a block
403403 // 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" ) ) ) ]
405405 #[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
406406 pub fn block_size ( & self ) -> libc:: c_ulong {
407407 self . 0 . f_bsize
@@ -492,7 +492,7 @@ impl Statfs {
492492 }
493493
494494 /// 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" ) ) ) ]
496496 #[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
497497 pub fn maximum_name_length ( & self ) -> libc:: c_ulong {
498498 self . 0 . f_namelen
0 commit comments