Skip to content

Commit

Permalink
change void* to stat* for lstat on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark McCaskey committed Apr 8, 2019
1 parent b2a51b8 commit 03f0bf0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/emscripten/src/syscalls/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,11 @@ pub fn ___syscall196(ctx: &mut Ctx, _which: i32, mut varargs: VarArgs) -> i32 {
unsafe {
let mut stat: stat = std::mem::zeroed();

#[cfg(target_os = "macos")]
let stat_ptr = &mut stat as *mut stat as *mut c_void;
#[cfg(not(target_os = "macos"))]
let stat_ptr = &mut stat as *mut stat;

#[cfg(target_os = "macos")]
let ret = lstat64(path, stat_ptr);
#[cfg(not(target_os = "macos"))]
Expand Down

0 comments on commit 03f0bf0

Please sign in to comment.