$NetBSD: patch-bf,v 1.3 2013/05/29 11:11:12 wiz Exp $ --- support/map.c.orig 2012-12-05 17:44:30.000000000 +0000 +++ support/map.c @@ -3282,13 +3282,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;