[Mono-bugs] [Bug 56450][Nor] New - NetBSD doesn't has pthread_getattr_np
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Sun, 4 Apr 2004 07:24:57 -0400 (EDT)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by recht@netbsd.org.
http://bugzilla.ximian.com/show_bug.cgi?id=56450
--- shadow/56450 2004-04-04 07:24:57.000000000 -0400
+++ shadow/56450.tmp.26555 2004-04-04 07:24:57.000000000 -0400
@@ -0,0 +1,45 @@
+Bug#: 56450
+Product: Mono: Runtime
+Version: unspecified
+OS: other
+OS Details: NetBSD 2.0_BETA i386
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: recht@netbsd.org
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: NetBSD doesn't has pthread_getattr_np
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+NetBSD doesn't has pthread_attr_getstack.
+
+Steps to reproduce the problem:
+1. make
+
+Additional Information:
+The patch below works around the problem by using ifdef NetBSD. (A better
+patch would probably let configure check for pthread_getattr_np /
+pthread_attr_get_np and use it accordingly.)
+
+--- mono/mini/mini-x86.c.orig 2004-03-10 20:53:29.000000000 +0100
++++ mono/mini/mini-x86.c 2004-04-04 13:12:20.000000000 +0200
+@@ -3379,7 +3379,11 @@
+
+
+ /* Determine stack boundaries */
+ if (!mono_running_on_valgrind ()) {
++#ifdef __NetBSD__
++ pthread_attr_get_np( self, &attr );
++#else
+ pthread_getattr_np( self, &attr );
++#endif
+ pthread_attr_getstack( &attr, &staddr, &stsize );
+ }