mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-04-18 21:19:19 +00:00
macOS: Fix support for Apple hardened runtime.
Reported by Christian Clason. #1334
This commit is contained in:
parent
7db2d1b12a
commit
e3c70a7d81
@ -138,7 +138,7 @@ static void mcode_free(jit_State *J, void *p, size_t sz)
|
||||
static int mcode_setprot(void *p, size_t sz, int prot)
|
||||
{
|
||||
#if MCMAP_CREATE
|
||||
pthread_jit_write_protect_np((prot & PROC_EXEC));
|
||||
pthread_jit_write_protect_np((prot & PROT_EXEC));
|
||||
return 0;
|
||||
#else
|
||||
return mprotect(p, sz, prot);
|
||||
|
Loading…
Reference in New Issue
Block a user