02_fix_libc_regression_execution_monitor.patch (934B)
1 Index: boost_1_63_0/boost/test/impl/execution_monitor.ipp 2 =================================================================== 3 --- boost_1_63_0.orig/boost/test/impl/execution_monitor.ipp 4 +++ boost_1_63_0/boost/test/impl/execution_monitor.ipp 5 @@ -1375,7 +1375,7 @@ enable( unsigned mask ) 6 #endif 7 8 return ~old_cw & BOOST_FPE_ALL; 9 -#elif defined(__GLIBC__) && defined(__USE_GNU) 10 +#elif defined(__GLIBC__) && defined(__USE_GNU) && !defined(BOOST_CLANG) && !defined(BOOST_NO_FENV_H) 11 if (BOOST_FPE_ALL == BOOST_FPE_OFF) 12 /* Not Implemented */ 13 return BOOST_FPE_OFF; 14 @@ -1415,7 +1415,7 @@ disable( unsigned mask ) 15 #endif 16 17 return ~old_cw & BOOST_FPE_ALL; 18 -#elif defined(__GLIBC__) && defined(__USE_GNU) 19 +#elif defined(__GLIBC__) && defined(__USE_GNU) && !defined(BOOST_CLANG) && !defined(BOOST_NO_FENV_H) 20 if (BOOST_FPE_ALL == BOOST_FPE_OFF) 21 /* Not Implemented */ 22 return BOOST_FPE_INV;