Subject: Re: [patch] Re: lang/mono/ ... error: too few arguments to function
To: <>
From: Matthias Drochner <m.drochner@googlemail.com>
List: pkgsrc-users
Date: 08/09/2007 18:45:23
--MP_VkDuWTjwPzx1SEz5VfBMN6/
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Matthias Drochner <m.drochner@gmail.com> wrote:
> see the appended patch
here is it
best regards
Matthias
--MP_VkDuWTjwPzx1SEz5VfBMN6/
Content-Type: application/octet-stream; name=patch-bf
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment; filename=patch-bf
$NetBSD$
--- ./support/map.c.orig 2007-08-09 11:42:11.000000000 +0200
+++ ./support/map.c
@@ -4672,15 +4672,23 @@ int Mono_Posix_ToMountFlags (guint64 x,=20
=20
int Mono_Posix_FromMremapFlags (guint64 x, guint64 *r)
{
+#ifdef __NetBSD__
+ *r =3D MAP_FIXED;
+#else
*r =3D 0;
+#endif
if (x =3D=3D 0)
return 0;
if ((x & Mono_Posix_MremapFlags_MREMAP_MAYMOVE) =3D=3D Mono_Posix_MremapF=
lags_MREMAP_MAYMOVE)
+#ifdef __NetBSD__
+ *r &=3D ~MAP_FIXED;
+#else
#ifdef MREMAP_MAYMOVE
*r |=3D MREMAP_MAYMOVE;
#else /* def MREMAP_MAYMOVE */
{errno =3D EINVAL; return -1;}
#endif /* ndef MREMAP_MAYMOVE */
+#endif /* NetBSD */
return 0;
}
=20
--MP_VkDuWTjwPzx1SEz5VfBMN6/--