diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lj_mcode.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
138 | static int mcode_setprot(void *p, size_t sz, int prot) | 138 | static int mcode_setprot(void *p, size_t sz, int prot) |
139 | { | 139 | { |
140 | #if MCMAP_CREATE | 140 | #if MCMAP_CREATE |
141 | pthread_jit_write_protect_np((prot & PROC_EXEC)); | 141 | pthread_jit_write_protect_np((prot & PROT_EXEC)); |
142 | return 0; | 142 | return 0; |
143 | #else | 143 | #else |
144 | return mprotect(p, sz, prot); | 144 | return mprotect(p, sz, prot); |