fix_fenv_header-new1.patch (638B)
1 --- gcc-12.2.0.orig/libstdc++-v3/include/c_global/cfenv 2023-04-12 13:43:21.180583885 +0200 2 +++ gcc-12.2.0/libstdc++-v3/include/c_global/cfenv 2023-04-12 13:44:49.377613899 +0200 3 @@ -37,9 +37,14 @@ 4 5 #include <bits/c++config.h> 6 7 -#if _GLIBCXX_HAVE_FENV_H 8 -# include <fenv.h> 9 -#endif 10 +//#if _GLIBCXX_HAVE_FENV_H 11 +//# include <fenv.h> 12 +//#endif 13 +// Need to ensure this finds the C library's <fenv.h> not a libstdc++ 14 +// wrapper that might already be installed later in the include search path. 15 +#define _GLIBCXX_INCLUDE_NEXT_C_HEADERS 16 +# include_next <fenv.h> 17 +#undef _GLIBCXX_INCLUDE_NEXT_C_HEADERS 18 19 #ifdef _GLIBCXX_USE_C99_FENV_TR1 20