summaryrefslogtreecommitdiff
path: root/lang/mono/patches/patch-dg
blob: 57d8a27539915a9dd9cb9d30729266895d540220 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
$NetBSD: patch-dg,v 1.4 2011/04/25 14:01:40 kefren Exp $
--- mono/metadata/threads.c.orig	2011-02-23 21:21:01.000000000 +0200
+++ mono/metadata/threads.c	2011-04-25 12:32:08.000000000 +0300
@@ -1002,8 +1002,16 @@ mono_thread_get_stack_bounds (guint8 **s
 #    if !defined(__OpenBSD__)
 	pthread_attr_getstack (&attr, (void**)staddr, stsize);
 #    endif
+	/*
+	 * he@NetBSD.org: For some reason, this test fails on NetBSD/powerpc,
+	 * so just avoid it.
+	 * kefren@: as a hint if somebody want to take a closer look: this
+	 * triggers also when building in a i386 chroot on amd64
+	 */
+#   if !(defined(__NetBSD__) && defined(__powerpc__))
 	if (*staddr)
 		g_assert ((current > *staddr) && (current < *staddr + *stsize));
+#   endif
 #  endif
 
 	pthread_attr_destroy (&attr);