Bugzilla – Bug 314290
NetBSD doesn't has pthread_getattr_np
Last modified: 2007-09-15 21:24:46 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".