mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-03 17:59:07 -04:00
16 lines
481 B
Plaintext
16 lines
481 B
Plaintext
$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,
|