From: Mike Pall Date: Sun, 9 Mar 2025 23:05:08 +0000 (+0100) Subject: macOS: Fix support for Apple hardened runtime. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e3c70a7d813ec7e3226510acedd64fc96021d4b0;p=thirdparty%2FLuaJIT.git macOS: Fix support for Apple hardened runtime. Reported by Christian Clason. #1334 --- diff --git a/src/lj_mcode.c b/src/lj_mcode.c index 43694226..d8fa165e 100644 --- a/src/lj_mcode.c +++ b/src/lj_mcode.c @@ -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);