mirror of
https://github.com/fluencelabs/wasmer
synced 2024-12-05 02:20:19 +00:00
Fix kernel-loader with musl.
This commit is contained in:
parent
f5d2294126
commit
bf5234b06f
@ -170,7 +170,7 @@ impl ServiceContext {
|
||||
let ret = unsafe {
|
||||
::libc::ioctl(
|
||||
fd,
|
||||
Command::LoadCode as i32 as ::libc::c_ulong,
|
||||
Command::LoadCode as i32 as _,
|
||||
&req as *const _ as ::libc::c_ulong,
|
||||
)
|
||||
};
|
||||
@ -193,7 +193,7 @@ impl ServiceContext {
|
||||
let err = unsafe {
|
||||
::libc::ioctl(
|
||||
fd,
|
||||
Command::RunCode as i32 as ::libc::c_ulong,
|
||||
Command::RunCode as i32 as _,
|
||||
&mut req as *mut _ as ::libc::c_ulong,
|
||||
)
|
||||
};
|
||||
@ -221,7 +221,7 @@ impl ServiceContext {
|
||||
let err = unsafe {
|
||||
::libc::ioctl(
|
||||
fd,
|
||||
Command::ReadMemory as i32 as ::libc::c_ulong,
|
||||
Command::ReadMemory as i32 as _,
|
||||
&req as *const _ as ::libc::c_ulong,
|
||||
)
|
||||
};
|
||||
@ -242,7 +242,7 @@ impl ServiceContext {
|
||||
let err = unsafe {
|
||||
::libc::ioctl(
|
||||
fd,
|
||||
Command::WriteMemory as i32 as ::libc::c_ulong,
|
||||
Command::WriteMemory as i32 as _,
|
||||
&req as *const _ as ::libc::c_ulong,
|
||||
)
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user