Files
pkgsrc-ng/lang/erlang/patches/patch-ao
2016-11-18 22:39:22 +01:00

18 lines
495 B
Plaintext

$NetBSD: patch-ao,v 1.4 2015/12/29 23:34:46 dholland Exp $
Be liberal in accepting mmap flags.
--- erts/emulator/hipe/hipe_sparc.c.orig 2015-06-23 18:56:21.000000000 +0000
+++ erts/emulator/hipe/hipe_sparc.c
@@ -131,6 +131,10 @@ static void atexit_alloc_code_stats(void
#define ALLOC_CODE_STATS(X) do{}while(0)
#endif
+#if !defined(MAP_ANONYMOUS) && defined(MAP_ANON)
+#define MAP_ANONYMOUS MAP_ANON
+#endif
+
static int morecore(unsigned int alloc_bytes)
{
unsigned int map_bytes;