pkgsrc/lang/erlang/patches/patch-am
2015-12-29 23:34:43 +00:00

17 lines
522 B
Text

$NetBSD: patch-am,v 1.4 2015/12/29 23:34:46 dholland Exp $
Be liberal in accepting mmap flags.
--- erts/emulator/hipe/hipe_arm.c.orig 2011-12-14 14:22:11.000000000 +0400
+++ erts/emulator/hipe/hipe_arm.c 2012-01-05 04:39:59.000000000 +0400
@@ -73,6 +73,10 @@
#define in_area(ptr,start,nbytes) \
((UWord)((char*)(ptr) - (char*)(start)) < (nbytes))
+#if !defined(MAP_ANONYMOUS) && defined(MAP_ANON)
+#define MAP_ANONYOUS MAP_ANON
+#endif
+
static void *new_code_mapping(void)
{
return mmap(0, SEGMENT_NRBYTES,