diff options
author | tnn <tnn@pkgsrc.org> | 2008-02-13 11:09:01 +0000 |
---|---|---|
committer | tnn <tnn@pkgsrc.org> | 2008-02-13 11:09:01 +0000 |
commit | cc1a7a456f5dfc09312caaca53ab69d5d1ddaa57 (patch) | |
tree | 51627301178f4279d669416a423c6cbdfd762e5f /lang | |
parent | 549c62ffd8930399f8c65e3d8b64fcb4e634f193 (diff) | |
download | pkgsrc-cc1a7a456f5dfc09312caaca53ab69d5d1ddaa57.tar.gz |
adapt mremap call so erlang builds on NetBSD-current (fixes PR 37131)
patch from Daniel Horecki on #pkgsrc
Diffstat (limited to 'lang')
-rw-r--r-- | lang/erlang/distinfo | 3 | ||||
-rw-r--r-- | lang/erlang/patches/patch-ac | 23 |
2 files changed, 25 insertions, 1 deletions
diff --git a/lang/erlang/distinfo b/lang/erlang/distinfo index 08ff83a2933..91834629bc1 100644 --- a/lang/erlang/distinfo +++ b/lang/erlang/distinfo @@ -1,9 +1,10 @@ -$NetBSD: distinfo,v 1.14 2008/01/04 14:10:05 ghen Exp $ +$NetBSD: distinfo,v 1.15 2008/02/13 11:09:01 tnn Exp $ SHA1 (erlang/otp_src_R12B-0.tar.gz) = e2c6e18d22e34a799fc6bc25fa2d25eedb30bccc RMD160 (erlang/otp_src_R12B-0.tar.gz) = cb07ea37f2b56e1ea2fc07c9063b647df7635b2b Size (erlang/otp_src_R12B-0.tar.gz) = 41074760 bytes SHA1 (patch-aa) = 795bca5194b365ddaff8b10d46246423d44f7bda SHA1 (patch-ab) = 1bf4d079f0138d97b0a86a8d75e87fce14586c49 +SHA1 (patch-ac) = 64941033e2409d22508f4d723f7501ba99664a11 SHA1 (patch-ae) = fba8ebcba12fae810f1c554b678f0b434e364833 SHA1 (patch-af) = 182b8c1555fc424bbb4fdc44bbb1ac22ba5641f0 diff --git a/lang/erlang/patches/patch-ac b/lang/erlang/patches/patch-ac new file mode 100644 index 00000000000..cf4166489f3 --- /dev/null +++ b/lang/erlang/patches/patch-ac @@ -0,0 +1,23 @@ +$NetBSD: patch-ac,v 1.5 2008/02/13 11:09:01 tnn Exp $ + +--- erts/emulator/sys/common/erl_mseg.c.orig 2007-11-26 19:59:24.000000000 +0100 ++++ erts/emulator/sys/common/erl_mseg.c +@@ -369,10 +369,18 @@ mseg_recreate(void *old_seg, Uint old_si + #if defined(ERTS_MSEG_FAKE_SEGMENTS) + new_seg = erts_sys_realloc(ERTS_ALC_N_INVALID, NULL, old_seg, new_size); + #elif HAVE_MREMAP ++#if defined(__NetBSD__) ++ new_seg = (void *) mremap((void *) old_seg, ++ (size_t) old_size, ++ NULL, ++ (size_t) new_size, ++ 0); ++#else + new_seg = (void *) mremap((void *) old_seg, + (size_t) old_size, + (size_t) new_size, + MREMAP_MAYMOVE); ++#endif + if (new_seg == (void *) MAP_FAILED) + new_seg = NULL; + #else |