summaryrefslogtreecommitdiff
path: root/lang/erlang/patches/patch-am
blob: f2e762eea5abb5ea456a6d0cc0b442ac9007d919 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-am,v 1.3 2012/04/12 12:14:13 asau Exp $

--- 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,