mirror of
https://github.com/fluencelabs/wasmer
synced 2025-04-25 02:12:13 +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 {
|
let ret = unsafe {
|
||||||
::libc::ioctl(
|
::libc::ioctl(
|
||||||
fd,
|
fd,
|
||||||
Command::LoadCode as i32 as ::libc::c_ulong,
|
Command::LoadCode as i32 as _,
|
||||||
&req as *const _ as ::libc::c_ulong,
|
&req as *const _ as ::libc::c_ulong,
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
@ -193,7 +193,7 @@ impl ServiceContext {
|
|||||||
let err = unsafe {
|
let err = unsafe {
|
||||||
::libc::ioctl(
|
::libc::ioctl(
|
||||||
fd,
|
fd,
|
||||||
Command::RunCode as i32 as ::libc::c_ulong,
|
Command::RunCode as i32 as _,
|
||||||
&mut req as *mut _ as ::libc::c_ulong,
|
&mut req as *mut _ as ::libc::c_ulong,
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
@ -221,7 +221,7 @@ impl ServiceContext {
|
|||||||
let err = unsafe {
|
let err = unsafe {
|
||||||
::libc::ioctl(
|
::libc::ioctl(
|
||||||
fd,
|
fd,
|
||||||
Command::ReadMemory as i32 as ::libc::c_ulong,
|
Command::ReadMemory as i32 as _,
|
||||||
&req as *const _ as ::libc::c_ulong,
|
&req as *const _ as ::libc::c_ulong,
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
@ -242,7 +242,7 @@ impl ServiceContext {
|
|||||||
let err = unsafe {
|
let err = unsafe {
|
||||||
::libc::ioctl(
|
::libc::ioctl(
|
||||||
fd,
|
fd,
|
||||||
Command::WriteMemory as i32 as ::libc::c_ulong,
|
Command::WriteMemory as i32 as _,
|
||||||
&req as *const _ as ::libc::c_ulong,
|
&req as *const _ as ::libc::c_ulong,
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user