Avoid use of LFS64 symbols on Emscripten
Since Emscripten uses musl libc internally. Non-functional change: all LFS64 symbols were aliased to their non-LFS64 counterparts in rust-lang/libc@7c952dceaa.
This commit is contained in:
parent
bc3e3015b6
commit
ef58e8b989
4 changed files with 2 additions and 9 deletions
|
@ -63,7 +63,7 @@ pub trait MetadataExt {
|
|||
impl MetadataExt for Metadata {
|
||||
#[allow(deprecated)]
|
||||
fn as_raw_stat(&self) -> &raw::stat {
|
||||
unsafe { &*(self.as_inner().as_inner() as *const libc::stat64 as *const raw::stat) }
|
||||
unsafe { &*(self.as_inner().as_inner() as *const libc::stat as *const raw::stat) }
|
||||
}
|
||||
fn st_dev(&self) -> u64 {
|
||||
self.as_inner().as_inner().st_dev as u64
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
//! Emscripten-specific raw type definitions
|
||||
//! This is basically exactly the same as the linux definitions,
|
||||
//! except using the musl-specific stat64 structure in liblibc.
|
||||
|
||||
#![stable(feature = "raw_ext", since = "1.1.0")]
|
||||
#![deprecated(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue