pkgsrc/lang/mono/patches/patch-dg
he edf6ff4e0b Add a patch to make this package build for our powerpc ports.
Since there is no difference for our other ports, no revision bump needed.
Part of fixing PR pkg/40622.

OK'ed by agc@
2009-04-05 16:20:06 +00:00

18 lines
554 B
Text

$NetBSD: patch-dg,v 1.1 2009/04/05 16:20:06 he Exp $
For some reason, this test fails on NetBSD/powerpc, so just avoid it.
--- ./mono/metadata/threads.c.orig 2009-04-05 15:00:34.000000000 +0200
+++ ./mono/metadata/threads.c
@@ -782,9 +782,11 @@ mono_thread_get_stack_bounds (guint8 **s
#ifndef sun
pthread_attr_getstack (&attr, (void**)staddr, stsize);
+#if !(defined(__NetBSD__) && defined(__powerpc__))
if (*staddr)
g_assert ((current > *staddr) && (current < *staddr + *stsize));
#endif
+#endif
pthread_attr_destroy (&attr);
#endif