mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-26 02:18:04 +01:00
fixed GH #618: OS X 10.10 defines PAGE_SIZE macro, conflicts with PAGE_SIZE in Thread_POSIX.cpp
This commit is contained in:
@@ -167,8 +167,8 @@ void ThreadImpl::setStackSizeImpl(int size)
|
|||||||
{
|
{
|
||||||
#if defined(POCO_OS_FAMILY_BSD)
|
#if defined(POCO_OS_FAMILY_BSD)
|
||||||
// we must round up to a multiple of the memory page size
|
// we must round up to a multiple of the memory page size
|
||||||
const int PAGE_SIZE = 4096;
|
const int STACK_PAGE_SIZE = 4096;
|
||||||
size = ((size + PAGE_SIZE - 1)/PAGE_SIZE)*PAGE_SIZE;
|
size = ((size + STACK_PAGE_SIZE - 1)/STACK_PAGE_SIZE)*STACK_PAGE_SIZE;
|
||||||
#endif
|
#endif
|
||||||
#if !defined(POCO_ANDROID)
|
#if !defined(POCO_ANDROID)
|
||||||
if (size < PTHREAD_STACK_MIN)
|
if (size < PTHREAD_STACK_MIN)
|
||||||
|
|||||||
Reference in New Issue
Block a user