aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/sys/common
diff options
context:
space:
mode:
authorMartti Kuparinen <[email protected]>2010-06-22 12:08:54 +0300
committerBjörn Gustavsson <[email protected]>2010-08-13 11:09:10 +0200
commit2fb2a1e0b6f85f87035d5b160c330cea584e01fd (patch)
tree827f121b327d5fd008963ba5d4c19e484d181856 /erts/emulator/sys/common
parent871fdb232d7facc58c202ef81634a12fbdcfefb4 (diff)
downloadotp-2fb2a1e0b6f85f87035d5b160c330cea584e01fd.tar.gz
otp-2fb2a1e0b6f85f87035d5b160c330cea584e01fd.tar.bz2
otp-2fb2a1e0b6f85f87035d5b160c330cea584e01fd.zip
Add support for NetBSD
These are the current NetBSD pkgsrc patches.
Diffstat (limited to 'erts/emulator/sys/common')
-rw-r--r--erts/emulator/sys/common/erl_mseg.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/erts/emulator/sys/common/erl_mseg.c b/erts/emulator/sys/common/erl_mseg.c
index 1c4c37b01a..b1ee165489 100644
--- a/erts/emulator/sys/common/erl_mseg.c
+++ b/erts/emulator/sys/common/erl_mseg.c
@@ -382,6 +382,14 @@ mseg_recreate(void *old_seg, Uint old_size, Uint new_size)
new_seg = (void *) pmremap((void *) old_seg,
(size_t) old_size,
(size_t) new_size);
+#elif defined(__NetBSD__)
+ new_seg = (void *) mremap((void *) old_seg,
+ (size_t) old_size,
+ NULL,
+ (size_t) new_size,
+ 0);
+ if (new_seg == (void *) MAP_FAILED)
+ new_seg = NULL;
#else
new_seg = (void *) mremap((void *) old_seg,
(size_t) old_size,