File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -695,7 +695,7 @@ pub type RawMode = libc::mode_t;
695695pub type Dev = libc:: dev_t ;
696696
697697/// `__fsword_t`
698- #[ cfg( all( target_os = "linux" , not( target_env = "musl" ) ) ) ]
698+ #[ cfg( all( target_os = "linux" , not( target_env = "musl" ) , not ( target_arch = "s390x" ) ) ) ]
699699pub type FsWord = libc:: __fsword_t ;
700700
701701/// `__fsword_t`
@@ -708,10 +708,15 @@ pub type FsWord = u32;
708708/// `__fsword_t`
709709#[ cfg( all(
710710 any( target_os = "android" , all( target_os = "linux" , target_env = "musl" ) ) ,
711+ not( target_arch = "s390x" ) ,
711712 target_pointer_width = "64"
712713) ) ]
713714pub type FsWord = u64 ;
714715
716+ // s390x uses u32 for statfs entries, even though __fsword_t is u64.
717+ #[ cfg( all( target_os = "linux" , target_arch = "s390x" ) ) ]
718+ pub type FsWord = u32 ;
719+
715720#[ cfg( not( target_os = "redox" ) ) ]
716721pub use libc:: { UTIME_NOW , UTIME_OMIT } ;
717722
Original file line number Diff line number Diff line change @@ -228,6 +228,8 @@ bitflags! {
228228 target_os = "netbsd" ,
229229 target_os = "openbsd" ,
230230 target_os = "redox" ,
231+ // TODO: Enable s390x once <https://github.com/rust-lang/libc/pull/2395> lands.
232+ target_arch = "s390x" ,
231233 ) ) ) ]
232234 const SYNC = libc:: MAP_SYNC ;
233235 /// `MAP_UNINITIALIZED`
You can’t perform that action at this time.
0 commit comments