void-packages/srcpkgs/flightgear/patches/musl-fix_feenableexcept.patch

12 lines
478 B
Diff
Raw Normal View History

2017-03-17 09:56:33 +01:00
--- src/FDM/JSBSim/JSBSim.cpp 2017-03-01 21:06:31.000000000 +0100
+++ src/FDM/JSBSim/JSBSim.cpp 2017-03-17 09:49:13.115544107 +0100
@@ -287,7 +287,7 @@
_clearfp();
_controlfp(_controlfp(0, 0) & ~(_EM_INVALID | _EM_ZERODIVIDE | _EM_OVERFLOW),
_MCW_EM);
-#elif defined(__GNUC__) && !defined(sgi) && !defined(__APPLE__)
+#elif defined(__GNUC__) && !defined(sgi) && !defined(__APPLE__) && defined(__GLIBC__)
feenableexcept(FE_DIVBYZERO | FE_INVALID);
#endif