void-packages/srcpkgs/pioneer/patches/musl.patch
cr6git dcb294b02f New package: pioneer
Closes: #7447 [via git-merge-pr]
2017-09-02 15:05:14 -07:00

20 lines
684 B
Diff

--- src/posix/OSPosix.cpp.orig 2017-08-19 20:00:23.645790781 +0200
+++ src/posix/OSPosix.cpp 2017-08-19 20:00:44.153855997 +0200
@@ -48,7 +48,7 @@
void EnableFPE()
{
-#if defined(_GNU_SOURCE) && !defined(__APPLE__)
+#if defined(_GNU_SOURCE) && !defined(__APPLE__) && defined(__GLIBC__)
// clear any outstanding exceptions before enabling, otherwise they'll
// trip immediately
feclearexcept(FE_DIVBYZERO | FE_INVALID | FE_OVERFLOW);
@@ -58,7 +58,7 @@
void DisableFPE()
{
-#if defined(_GNU_SOURCE) && !defined(__APPLE__)
+#if defined(_GNU_SOURCE) && !defined(__APPLE__) && defined(__GLIBC__)
fedisableexcept(FE_DIVBYZERO | FE_INVALID | FE_OVERFLOW);
#endif
}