提交 46fb680c 编写于 作者: D Drew DeVault 提交者: Rich Felker

support archs with no mlock syscall, only mlock2

上级 59f88d76
......@@ -3,5 +3,9 @@
int mlock(const void *addr, size_t len)
{
#ifdef SYS_mlock
return syscall(SYS_mlock, addr, len);
#else
return syscall(SYS_mlock2, addr, len, 0);
#endif
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册