--- libs\context\src\stack_allocator_posix.cpp 2012-05-22 21:02:04.000000000 +0100 +++ libs\context\src\stack_allocator_posix.cpp 2012-07-06 13:54:38.000000000 +0100 @@ -3,12 +3,16 @@ // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #define BOOST_CONTEXT_SOURCE +#if defined(sun) || defined(__sun) +#define _XPG4_2 +#endif + #include extern "C" { #include #include #include --- libs\context\src\stack_utils_posix.cpp 2012-04-12 19:42:36.000000000 +0100 +++ libs\context\src\stack_utils_posix.cpp 2012-07-06 13:59:54.000000000 +0100 @@ -8,17 +8,17 @@ #include extern "C" { #include #include +#include #include } #include -#include #include namespace { static rlimit stacksize_limit_()