From: Drew DeVault Date: Thu, 21 Mar 2019 15:32:38 +0000 (-0400) Subject: support archs with no mlock syscall, only mlock2 X-Git-Tag: v1.1.22~11 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=46fb680c850b0846af6a7f789404077368d60c79;p=oweals%2Fmusl.git support archs with no mlock syscall, only mlock2 --- diff --git a/src/mman/mlock.c b/src/mman/mlock.c index e683a44a..71af582f 100644 --- a/src/mman/mlock.c +++ b/src/mman/mlock.c @@ -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 }