File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
src/unix/linux_like/android Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -2631,6 +2631,7 @@ WUNTRACED
26312631W_EXITCODE
26322632W_OK
26332633W_STOPCODE
2634+ XFS_SUPER_MAGIC
26342635XTABS
26352636X_OK
26362637_IOFBF
Original file line number Diff line number Diff line change @@ -2709,6 +2709,17 @@ pub const RTMSG_DELDEVICE: u32 = 0x12;
27092709pub const RTMSG_NEWROUTE : u32 = 0x21 ;
27102710pub const RTMSG_DELROUTE : u32 = 0x22 ;
27112711
2712+ // Most `*_SUPER_MAGIC` constants are defined at the `linux_like` level; the
2713+ // following are only available on newer Linux versions than the versions
2714+ // currently used in CI in some configurations, so we define them here.
2715+ cfg_if ! {
2716+ if #[ cfg( not( target_arch = "s390x" ) ) ] {
2717+ pub const XFS_SUPER_MAGIC : :: c_long = 0x58465342 ;
2718+ } else if #[ cfg( target_arch = "s390x" ) ] {
2719+ pub const XFS_SUPER_MAGIC : :: c_uint = 0x58465342 ;
2720+ }
2721+ }
2722+
27122723f ! {
27132724 pub fn CMSG_NXTHDR ( mhdr: * const msghdr,
27142725 cmsg: * const cmsghdr) -> * mut cmsghdr {
You can’t perform that action at this time.
0 commit comments