diff options
author | Martti Kuparinen <[email protected]> | 2010-06-22 12:08:54 +0300 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2010-08-13 11:09:10 +0200 |
commit | 2fb2a1e0b6f85f87035d5b160c330cea584e01fd (patch) | |
tree | 827f121b327d5fd008963ba5d4c19e484d181856 /erts/emulator/sys/common/erl_mseg.c | |
parent | 871fdb232d7facc58c202ef81634a12fbdcfefb4 (diff) | |
download | otp-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/erl_mseg.c')
-rw-r--r-- | erts/emulator/sys/common/erl_mseg.c | 8 |
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, |