summaryrefslogtreecommitdiff
path: root/lang/erlang/patches/patch-ao
blob: 0dec9f42cd37b2b2edc3f438fde19b8fefd2a41a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-ao,v 1.3 2015/07/18 08:55:16 fhajny Exp $

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