summaryrefslogtreecommitdiff
path: root/lang/mono/patches/patch-dg
blob: 1aa8c6c96a560f090d433e8c162bf8cbbb2f0bf3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$NetBSD: patch-dg,v 1.2 2010/02/16 17:01:05 kefren Exp $
--- mono/metadata/threads.c.orig	2009-11-03 02:36:41.000000000 +0200
+++ mono/metadata/threads.c	2010-02-16 12:34:11.000000000 +0200
@@ -865,8 +865,14 @@ mono_thread_get_stack_bounds (guint8 **s
 
 #  ifndef sun
 	pthread_attr_getstack (&attr, (void**)staddr, stsize);
+	/*
+	 * he@NetBSD.org: For some reason, this test fails on NetBSD/powerpc,
+	 * so just avoid it.
+	 */
+    #if !(defined(__NetBSD__) && defined(__powerpc__))
 	if (*staddr)
 		g_assert ((current > *staddr) && (current < *staddr + *stsize));
+    #endif
 #  endif
 
 	pthread_attr_destroy (&attr);