Bug 314290 (MONO56450) - NetBSD doesn't has pthread_getattr_np
Summary: NetBSD doesn't has pthread_getattr_np
Status: RESOLVED FIXED
Alias: MONO56450
Product: Mono: Runtime
Classification: Mono
Component: misc (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Mono Bugs
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2004-04-04 14:24 UTC by Marc Recht
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 18:32:41 UTC


---- Reported by recht@netbsd.org 2004-04-04 07:24:57 MST ----

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 );
   }



---- Additional Comments From vargaz@freemail.hu 2004-04-05 12:31:25 MST ----

Fixed in CVS.


Unknown bug field "cf_op_sys_details" encountered while moving bug
   <cf_op_sys_details>NetBSD 2.0_BETA i386</cf_op_sys_details>
Unknown operating system other. Setting to default OS "Other".