aboutsummaryrefslogtreecommitdiff
path: root/src/lj_ccallback.c
diff options
context:
space:
mode:
authorMike Pall <mike>2025-03-10 02:53:20 +0100
committerMike Pall <mike>2025-03-10 02:53:20 +0100
commit4f2bb199fe7138247e0b075c886c9e9197cf0271 (patch)
treec24f4bef87ab4e6374c57b930ae076bd6318c3ad /src/lj_ccallback.c
parente3c70a7d813ec7e3226510acedd64fc96021d4b0 (diff)
downloadluajit-4f2bb199fe7138247e0b075c886c9e9197cf0271.tar.gz
luajit-4f2bb199fe7138247e0b075c886c9e9197cf0271.tar.bz2
luajit-4f2bb199fe7138247e0b075c886c9e9197cf0271.zip
macOS: Fix Apple hardened runtime support and put behind build option.
Reported by vanc. #1334
Diffstat (limited to 'src/lj_ccallback.c')
-rw-r--r--src/lj_ccallback.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_ccallback.c b/src/lj_ccallback.c
index d93dbc64..7f08f0a8 100644
--- a/src/lj_ccallback.c
+++ b/src/lj_ccallback.c
@@ -263,7 +263,7 @@ static void *callback_mcode_init(global_State *g, uint32_t *page)
263#endif 263#endif
264 264
265/* Check for macOS hardened runtime. */ 265/* Check for macOS hardened runtime. */
266#if LUAJIT_SECURITY_MCODE != 0 && defined(MAP_JIT) && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 110000 266#if defined(LUAJIT_ENABLE_OSX_HRT) && LUAJIT_SECURITY_MCODE != 0 && defined(MAP_JIT) && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 110000
267#include <pthread.h> 267#include <pthread.h>
268#define CCMAP_CREATE MAP_JIT 268#define CCMAP_CREATE MAP_JIT
269#else 269#else