@@ -29,7 +29,7 @@ type fs_type_t = u32;
29
29
type fs_type_t = libc:: c_ulong ;
30
30
#[ cfg( all( target_os = "linux" , target_arch = "s390x" ) ) ]
31
31
type fs_type_t = libc:: c_uint ;
32
- #[ cfg( all( target_os = "linux" , target_env = "musl" ) ) ]
32
+ #[ cfg( all( target_os = "linux" , target_env = "musl" , not ( target_arch = "s390x" ) ) ) ]
33
33
type fs_type_t = libc:: c_ulong ;
34
34
#[ cfg( all( target_os = "linux" , target_env = "uclibc" ) ) ]
35
35
type fs_type_t = libc:: c_int ;
@@ -255,7 +255,7 @@ impl Statfs {
255
255
/// Optimal transfer block size
256
256
#[ cfg( any(
257
257
target_os = "android" ,
258
- all( target_os = "linux" , target_env = "musl" )
258
+ all( target_os = "linux" , target_env = "musl" , not ( target_arch = "s390x" ) )
259
259
) ) ]
260
260
#[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
261
261
pub fn optimal_transfer_size ( & self ) -> libc:: c_ulong {
@@ -307,7 +307,7 @@ impl Statfs {
307
307
308
308
/// Size of a block
309
309
// f_bsize on linux: https://github.com/torvalds/linux/blob/master/fs/nfs/super.c#L471
310
- #[ cfg( all( target_os = "linux" , target_env = "musl" ) ) ]
310
+ #[ cfg( all( target_os = "linux" , target_env = "musl" , not ( target_arch = "s390x" ) ) ) ]
311
311
#[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
312
312
pub fn block_size ( & self ) -> libc:: c_ulong {
313
313
self . 0 . f_bsize
@@ -365,7 +365,7 @@ impl Statfs {
365
365
}
366
366
367
367
/// Maximum length of filenames
368
- #[ cfg( all( target_os = "linux" , target_env = "musl" ) ) ]
368
+ #[ cfg( all( target_os = "linux" , target_env = "musl" , not ( target_arch = "s390x" ) ) ) ]
369
369
#[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
370
370
pub fn maximum_name_length ( & self ) -> libc:: c_ulong {
371
371
self . 0 . f_namelen
0 commit comments