File tree 2 files changed +12
-0
lines changed
src/unix/linux_like/android
2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -2631,6 +2631,7 @@ WUNTRACED
2631
2631
W_EXITCODE
2632
2632
W_OK
2633
2633
W_STOPCODE
2634
+ XFS_SUPER_MAGIC
2634
2635
XTABS
2635
2636
X_OK
2636
2637
_IOFBF
Original file line number Diff line number Diff line change @@ -2709,6 +2709,17 @@ pub const RTMSG_DELDEVICE: u32 = 0x12;
2709
2709
pub const RTMSG_NEWROUTE : u32 = 0x21 ;
2710
2710
pub const RTMSG_DELROUTE : u32 = 0x22 ;
2711
2711
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
+
2712
2723
f ! {
2713
2724
pub fn CMSG_NXTHDR ( mhdr: * const msghdr,
2714
2725
cmsg: * const cmsghdr) -> * mut cmsghdr {
You can’t perform that action at this time.
0 commit comments