http://bugs.winehq.org/show_bug.cgi?id=16023
--- Comment #26 from François Gouget fgouget@codeweavers.com 2008-12-31 13:34:40 --- Created an attachment (id=18354) --> (http://bugs.winehq.org/attachment.cgi?id=18354) Let Wine allocate the pthread stack
This is not FreeBSD specific but is needed in order to avoid threading problems after applying the next patch.
I tested this patch on Linux and in my limited testing it worked ok: the memory got allocated correctly, ntdll carved the guard page as expected, and it released the memory too when the thread closed.