summaryrefslogtreecommitdiff
path: root/rts/posix
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2018-08-01 06:15:59 -0400
committerBen Gamari <ben@smart-cactus.org>2018-08-01 06:16:48 -0400
commit9bd48643c917f8e38a0ddca0b6ac1777bbf66f99 (patch)
treedb8993744270f9e49a519910308763c328f4dea2 /rts/posix
parent5e103a1e8a5b23eafbaf825c255b919e8205d87b (diff)
downloadhaskell-9bd48643c917f8e38a0ddca0b6ac1777bbf66f99.tar.gz
rts: Fix unused function
Diffstat (limited to 'rts/posix')
-rw-r--r--rts/posix/OSMem.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/rts/posix/OSMem.c b/rts/posix/OSMem.c
index 3c4455e57f..347c7c1a5c 100644
--- a/rts/posix/OSMem.c
+++ b/rts/posix/OSMem.c
@@ -249,10 +249,11 @@ my_mmap (void *addr, W_ size, int operation)
if (ret == MAP_FAILED) {
return NULL;
}
+#endif /* defined(darwin_HOST_OS) */
+
// Map in committed pages rather than take a fault for each chunk.
// Also arrange to include them in core-dump files.
post_mmap_madvise(operation, size, ret);
-#endif /* defined(darwin_HOST_OS) */
return ret;
}