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