blob: c6d76b4e3d14cfc8854b83b5d7a2a679bb3de0fc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
$NetBSD: patch-am,v 1.2 2011/04/14 19:34:08 asau Exp $
--- erts/emulator/hipe/hipe_arm.c.orig 2010-06-24 07:25:07.000000000 +0300
+++ erts/emulator/hipe/hipe_arm.c 2010-06-24 07:25:43.000000000 +0300
@@ -73,6 +73,10 @@
#define in_area(ptr,start,nbytes) \
((unsigned long)((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,
|