mirror of
git://git.musl-libc.org/musl
synced 2025-01-11 00:59:46 +00:00
support archs with no mlock syscall, only mlock2
This commit is contained in:
parent
59f88d7662
commit
46fb680c85
@ -3,5 +3,9 @@
|
|||||||
|
|
||||||
int mlock(const void *addr, size_t len)
|
int mlock(const void *addr, size_t len)
|
||||||
{
|
{
|
||||||
|
#ifdef SYS_mlock
|
||||||
return syscall(SYS_mlock, addr, len);
|
return syscall(SYS_mlock, addr, len);
|
||||||
|
#else
|
||||||
|
return syscall(SYS_mlock2, addr, len, 0);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user