mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-17 10:51:21 +00:00
change void* to stat* for lstat on linux
This commit is contained in:
@ -770,7 +770,11 @@ pub fn ___syscall196(ctx: &mut Ctx, _which: i32, mut varargs: VarArgs) -> i32 {
|
|||||||
unsafe {
|
unsafe {
|
||||||
let mut stat: stat = std::mem::zeroed();
|
let mut stat: stat = std::mem::zeroed();
|
||||||
|
|
||||||
|
#[cfg(target_os = "macos")]
|
||||||
let stat_ptr = &mut stat as *mut stat as *mut c_void;
|
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")]
|
#[cfg(target_os = "macos")]
|
||||||
let ret = lstat64(path, stat_ptr);
|
let ret = lstat64(path, stat_ptr);
|
||||||
#[cfg(not(target_os = "macos"))]
|
#[cfg(not(target_os = "macos"))]
|
||||||
|
Reference in New Issue
Block a user