]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
macOS: Fix support for Apple hardened runtime.
authorMike Pall <mike>
Sun, 9 Mar 2025 23:05:08 +0000 (00:05 +0100)
committerMike Pall <mike>
Sun, 9 Mar 2025 23:05:08 +0000 (00:05 +0100)
Reported by Christian Clason. #1334

src/lj_mcode.c

index 43694226a6b74cf9ead7af37cb8e39e3840ced3e..d8fa165e1d59d191bf41fe0ebecd04534f451f60 100644 (file)
@@ -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);