aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/sys/common/erl_mmap.c
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2016-11-22 14:22:19 +0100
committerSverker Eriksson <[email protected]>2016-11-22 14:22:19 +0100
commit9563cd5b296fe589c8abe357710fbb79bc766d09 (patch)
tree464ff57782299c2e42d937ab3428a651615bfdbf /erts/emulator/sys/common/erl_mmap.c
parent3d7b55f946162b5a129241dbe67397784a1ba1a5 (diff)
parent011242f927259aa477ebe488a3ee3c4e22081488 (diff)
downloadotp-9563cd5b296fe589c8abe357710fbb79bc766d09.tar.gz
otp-9563cd5b296fe589c8abe357710fbb79bc766d09.tar.bz2
otp-9563cd5b296fe589c8abe357710fbb79bc766d09.zip
Merge branch 'sverker/Wundef'
Diffstat (limited to 'erts/emulator/sys/common/erl_mmap.c')
-rw-r--r--erts/emulator/sys/common/erl_mmap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/erts/emulator/sys/common/erl_mmap.c b/erts/emulator/sys/common/erl_mmap.c
index 3ab03971a5..169740f8cf 100644
--- a/erts/emulator/sys/common/erl_mmap.c
+++ b/erts/emulator/sys/common/erl_mmap.c
@@ -1878,7 +1878,7 @@ erts_mremap(ErtsMemMapper* mm,
return NULL;
}
-#if ERTS_HAVE_OS_MREMAP || ERTS_HAVE_GENUINE_OS_MMAP
+#if defined(ERTS_HAVE_OS_MREMAP) || defined(ERTS_HAVE_GENUINE_OS_MMAP)
superaligned = (ERTS_MMAPFLG_SUPERALIGNED & flags);
if (superaligned) {
@@ -1898,7 +1898,7 @@ erts_mremap(ErtsMemMapper* mm,
}
}
-#if ERTS_HAVE_GENUINE_OS_MMAP
+#ifdef ERTS_HAVE_GENUINE_OS_MMAP
if (asize < old_size
&& (!superaligned
|| ERTS_IS_SUPERALIGNED(ptr))) {
@@ -1913,7 +1913,7 @@ erts_mremap(ErtsMemMapper* mm,
return ptr;
}
#endif
-#if ERTS_HAVE_OS_MREMAP
+#ifdef ERTS_HAVE_OS_MREMAP
if (superaligned)
return remap_move(mm, flags, new_ptr, old_size, sizep);
else {