7 #if defined(__FreeBSD__)
9 #include <mono/utils/mono-threads.h>
11 #include <pthread_np.h>
14 mono_threads_platform_get_stack_bounds (guint8 **staddr, size_t *stsize)
17 guint8 *current = (guint8*)&attr;
22 pthread_attr_init (&attr);
23 pthread_attr_get_np (pthread_self (), &attr);
25 pthread_attr_getstack (&attr, (void**)staddr, stsize);
26 pthread_attr_destroy (&attr);