提交 0bad3e62 编写于 作者: B bors

auto merge of #7395 : yichoi/rust/android_dummy, r=brson

add android dummy functions which does not exist in boinic.

after #7257, some mman related functions are needed for android.
......@@ -83,4 +83,29 @@ extern "C" int pthread_atfork(void (*prefork)(void),
return 0;
}
extern "C" int mlockall(int flags)
{
return 0;
}
extern "C" int munlockall(void)
{
return 0;
}
extern "C" int shm_open(const char *name, int oflag, mode_t mode)
{
return 0;
}
extern "C" int shm_unlink(const char *name)
{
return 0;
}
extern "C" int posix_madvise(void *addr, size_t len, int advice)
{
return 0;
}
#endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册