$NetBSD: patch-bf,v 1.4 2014/11/30 08:40:51 spz Exp $
--- support/map.c.orig	2014-09-22 13:23:09.000000000 +0000
+++ support/map.c
@@ -3623,13 +3623,21 @@ int Mono_Posix_ToMountFlags (guint64 x, 
 
 int Mono_Posix_FromMremapFlags (guint64 x, guint64 *r)
 {
+#ifdef __NetBSD__
+	*r = MAP_FIXED;
+#else
 	*r = 0;
+#endif
 	if ((x & Mono_Posix_MremapFlags_MREMAP_MAYMOVE) == Mono_Posix_MremapFlags_MREMAP_MAYMOVE)
+#ifdef __NetBSD__
+	*r &= ~MAP_FIXED;
+#else
 #ifdef MREMAP_MAYMOVE
 		*r |= MREMAP_MAYMOVE;
 #else /* def MREMAP_MAYMOVE */
 		{errno = EINVAL; return -1;}
 #endif /* ndef MREMAP_MAYMOVE */
+#endif /* __NetBSD__ */
 	if (x == 0)
 		return 0;
 	return 0;
