From fef70c038697210edd61b853911bb5e2cfd5f9cc Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sat, 30 Oct 2004 09:48:29 +0000 Subject: [PATCH] fix --- amxmodx/amx.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/amxmodx/amx.cpp b/amxmodx/amx.cpp index d0d0c15e..f6137495 100755 --- a/amxmodx/amx.cpp +++ b/amxmodx/amx.cpp @@ -1134,10 +1134,11 @@ int AMXAPI amx_InitJIT(AMX *amx, void *reloc_table, void *native_code) int mac, res; AMX_HEADER *hdr; - mac = memoryFullAccess( (void *)((int)((void*)asm_runJIT)-(int)((void*)asm_runJIT)%sysconf(_SC_PAGESIZE)), 20000 ); #ifdef __linux__ + mac = memoryFullAccess( (void *)((int)((void*)asm_runJIT)-(int)((void*)asm_runJIT)%sysconf(_SC_PAGESIZE)), 20000 ); if ( mac ) #else + mac = memoryFullAccess((void *)asm_runJIT, 20000); if ( !mac ) #endif return AMX_ERR_INIT_JIT;