wine_pthread_init_thread: retrieve the stack info on Darwin.
diff --git a/loader/pthread.c b/loader/pthread.c
index af3386f..148438b 100644
--- a/loader/pthread.c
+++ b/loader/pthread.c
@@ -69,6 +69,9 @@
pthread_attr_t attr;
pthread_getattr_np( pthread_self(), &attr );
pthread_attr_getstack( &attr, &info->stack_base, &info->stack_size );
+#elif defined(HAVE_PTHREAD_GET_STACKSIZE_NP) && defined(HAVE_PTHREAD_GET_STACKADDR_NP)
+ info->stack_size = pthread_get_stacksize_np(pthread_self());
+ info->stack_base = pthread_get_stackaddr_np(pthread_self());
#else
/* assume that the stack allocation is page aligned */
char dummy;