From 4f864967734cec1203f8fc15d355e980a2ce38a8 Mon Sep 17 00:00:00 2001 From: Stefanos Kornilios Mitsis Poiitidis Date: Wed, 29 Jul 2015 04:21:54 +0200 Subject: [PATCH] linux/common: Stub out LockRegion/UnLockRegion when TARGET_NO_EXCEPTIONS --- core/linux/common.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/linux/common.cpp b/core/linux/common.cpp index 3ca306e7d..8f97b0ece 100644 --- a/core/linux/common.cpp +++ b/core/linux/common.cpp @@ -191,7 +191,7 @@ void cResetEvent::Wait()//Wait for signal , then reset void VArray2::LockRegion(u32 offset,u32 size) { - #if !defined(TARGET_NACL32) + #if !defined(TARGET_NO_EXCEPTIONS) u32 inpage=offset & PAGE_MASK; u32 rv=mprotect (data+offset-inpage, size+inpage, PROT_READ ); if (rv!=0) @@ -242,7 +242,7 @@ void print_mem_addr() void VArray2::UnLockRegion(u32 offset,u32 size) { - #if !defined(TARGET_NACL32) + #if !defined(TARGET_NO_EXCEPTIONS) u32 inpage=offset & PAGE_MASK; u32 rv=mprotect (data+offset-inpage, size+inpage, PROT_READ | PROT_WRITE); if (rv!=0)