FreeBSD build and threading

This commit is contained in:
Aleksandar Fabijanic
2012-10-01 00:31:28 +00:00
parent 8f747fabdc
commit bf74a4be8b
9 changed files with 31 additions and 23 deletions

View File

@@ -160,7 +160,7 @@ void ThreadImpl::setStackSizeImpl(int size)
#else
if (size != 0)
{
#if defined(__APPLE__)
#if defined(POCO_OS_FAMILY_BSD)
// we must round up to a multiple of the memory page size
const int PAGE_SIZE = 4096;
size = ((size + PAGE_SIZE - 1)/PAGE_SIZE)*PAGE_SIZE;