diff options
Diffstat (limited to 'rts/posix/OSMem.c')
-rw-r--r-- | rts/posix/OSMem.c | 3 |
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; } |