We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e646126 + 8f17113 commit 62025d8Copy full SHA for 62025d8
src/uucore/src/lib/features/fsext.rs
@@ -812,8 +812,9 @@ impl FsMeta for StatFs {
812
target_os = "openbsd"
813
))]
814
fn fsid(&self) -> u64 {
815
- let f_fsid: &[u32; 2] =
816
- unsafe { &*(&self.f_fsid as *const nix::sys::statfs::fsid_t as *const [u32; 2]) };
+ // Use type inference to determine the type of f_fsid
+ // (libc::__fsid_t on Android, libc::fsid_t on other platforms)
817
+ let f_fsid: &[u32; 2] = unsafe { &*(&self.f_fsid as *const _ as *const [u32; 2]) };
818
((u64::from(f_fsid[0])) << 32) | u64::from(f_fsid[1])
819
}
820
#[cfg(not(any(
0 commit comments