aboutsummaryrefslogtreecommitdiffstats
path: root/testing/flightgear/musl-fenv.patch
diff options
context:
space:
mode:
authorThomas Kienlen <kommander@laposte.net>2021-11-12 22:07:16 +0100
committerLeonardo Arena <rnalrd@alpinelinux.org>2021-11-15 07:16:39 +0000
commit0ab53fe0620f9b8ee0e7ee321be3f9b77ff4c913 (patch)
tree596432a6407e68794c829893ee8229121c218d1f /testing/flightgear/musl-fenv.patch
parent1e3e8503307b7d73c50c853dfc45be8e94ff6b50 (diff)
downloadaports-0ab53fe0620f9b8ee0e7ee321be3f9b77ff4c913.tar.gz
aports-0ab53fe0620f9b8ee0e7ee321be3f9b77ff4c913.tar.bz2
aports-0ab53fe0620f9b8ee0e7ee321be3f9b77ff4c913.tar.xz
testing/flightgear: upgrade to 2021.3.11
Diffstat (limited to 'testing/flightgear/musl-fenv.patch')
-rw-r--r--testing/flightgear/musl-fenv.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/testing/flightgear/musl-fenv.patch b/testing/flightgear/musl-fenv.patch
new file mode 100644
index 0000000000..8a0922f57d
--- /dev/null
+++ b/testing/flightgear/musl-fenv.patch
@@ -0,0 +1,19 @@
+Simply disabling the code which enables floating point exceptions
+is probably wrong, but I don't have a replacement for the
+non-posix functions fegetexcept(3) and feenableexcept(3).
+
+--- a/src/Main/bootstrap.cxx 2015-02-18 21:10:05.000000000 +0100
++++ b/src/Main/bootstrap.cxx 2015-11-01 01:25:56.665212195 +0100
+@@ -96,8 +96,12 @@
+ initFPE (bool fpeAbort)
+ {
++#if defined(__GLIBC__)
+ if (fpeAbort) {
+ int except = fegetexcept();
+ feenableexcept(except | FE_DIVBYZERO | FE_INVALID);
+ } else {
+ signal(SIGFPE, handleFPE);
+ }
++#else
++ signal(SIGFPE, handleFPE);
++#endif