diff --git a/include/boost/test/impl/execution_monitor.ipp b/include/boost/test/impl/execution_monitor.ipp index 9929f74b53..ce2551a226 100644 --- a/include/boost/test/impl/execution_monitor.ipp +++ b/include/boost/test/impl/execution_monitor.ipp @@ -155,8 +155,11 @@ namespace { void _set_se_translator( void* ) {} } # include # endif +// BOOST_TEST_DISABLE_ALT_STACK is available in case you're crosscompiling a +// target like ESXi which has no proper flag and doesn't support the alt stack. # if !defined(__CYGWIN__) && !defined(__QNXNTO__) && !defined(__bgq__) && \ - (!defined(__ANDROID__) || __ANDROID_API__ >= 8) + (!defined(__ANDROID__) || __ANDROID_API__ >= 8) && \ + !defined(BOOST_TEST_DISABLE_ALT_STACK) # define BOOST_TEST_USE_ALT_STACK # endif