void-packages/srcpkgs/cppcheck/patches/musl-no-feenableexcept.patch

12 lines
345 B
Diff

--- a/test/signal/test-signalhandler.cpp
+++ b/test/signal/test-signalhandler.cpp
@@ -46,7 +46,7 @@
/*static*/ void my_fpe()
{
-#if !defined(__APPLE__)
+#if !defined(__APPLE__) && defined(__GLIBC__)
feenableexcept(FE_ALL_EXCEPT); // TODO: check result
#endif
std::feraiseexcept(FE_UNDERFLOW | FE_DIVBYZERO); // TODO: check result