Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRodrigo Kumpera <kumpera@gmail.com>2015-09-10 22:08:09 +0300
committerRodrigo Kumpera <kumpera@gmail.com>2015-09-10 22:08:37 +0300
commit4fd72b41e7efac38a87bb76c7668c6ec7b03da57 (patch)
tree2e6f408c5d334702e9067dee31cdc2e57cc3714f
parentc02307527f76d3f6edb49f6e89b1356287d730d5 (diff)
Fix the build.
-rw-r--r--mono/utils/mono-mmap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mono/utils/mono-mmap.c b/mono/utils/mono-mmap.c
index 1ce6d1e610a..bb1ec15d474 100644
--- a/mono/utils/mono-mmap.c
+++ b/mono/utils/mono-mmap.c
@@ -348,8 +348,9 @@ mono_valloc (void *addr, size_t length, int flags)
int
mono_vfree (void *addr, size_t length)
{
+ int res;
BEGIN_CRITICAL_SECTION;
- int res = munmap (addr, length);
+ res = munmap (addr, length);
END_CRITICAL_SECTION;
return res;
}