From 989a886b1674beacf037115826bdea61327135ca Mon Sep 17 00:00:00 2001 From: Kshitij Bansal Date: Fri, 11 Jul 2014 11:54:48 -0400 Subject: [PATCH] fix for windows build --- src/main/portfolio.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/portfolio.cpp b/src/main/portfolio.cpp index abe27eb06..51b4779cc 100644 --- a/src/main/portfolio.cpp +++ b/src/main/portfolio.cpp @@ -96,6 +96,7 @@ std::pair runPortfolio(int numThreads, #endif /* BOOST_HAS_THREAD_ATTR */ +#if defined(BOOST_THREAD_PLATFORM_PTHREAD) if(Chat.isOn()) { void *stackaddr; size_t stacksize; @@ -104,6 +105,7 @@ std::pair runPortfolio(int numThreads, pthread_attr_getstack(&attr, &stackaddr, &stacksize); Chat() << "Created worker thread " << t << " with stack size " << stacksize << std::endl; } +#endif } if(not driverFn.empty()) -- 2.30.2