summaryrefslogtreecommitdiff
path: root/user/gsl/gsl-2.4-portable.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-29 03:13:16 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-29 03:13:16 -0500
commitcf4e117cdbf94bf75339cd49de4161a8c6189bbc (patch)
tree144c4a3dbd2af461f394ba20570f6282a408c6f5 /user/gsl/gsl-2.4-portable.patch
parentef4856fa4a5438cec920bdea96e1392db27a5716 (diff)
downloadpackages-cf4e117cdbf94bf75339cd49de4161a8c6189bbc.tar.gz
packages-cf4e117cdbf94bf75339cd49de4161a8c6189bbc.tar.bz2
packages-cf4e117cdbf94bf75339cd49de4161a8c6189bbc.tar.xz
packages-cf4e117cdbf94bf75339cd49de4161a8c6189bbc.zip
user/gsl: re-establish portability, fix PPC32 build
Diffstat (limited to 'user/gsl/gsl-2.4-portable.patch')
-rw-r--r--user/gsl/gsl-2.4-portable.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/user/gsl/gsl-2.4-portable.patch b/user/gsl/gsl-2.4-portable.patch
new file mode 100644
index 000000000..13bf42a93
--- /dev/null
+++ b/user/gsl/gsl-2.4-portable.patch
@@ -0,0 +1,24 @@
+Based on the FreeBSD patch that brings the generic C99 interface to all
+architectures, this patch makes sure that "special" arch code isn't used.
+
+--- gsl-2.4/ieee-utils/fp.c 2015-11-03 10:21:55.000000000 -0600
++++ gsl-2.4/ieee-utils/fp.c 2018-04-24 22:45:00.934921840 -0500
+@@ -1,6 +1,8 @@
+ #include <config.h>
+
+-#if HAVE_GNUSPARC_IEEE_INTERFACE
++#if HAVE_DECL_FEENABLEEXCEPT || HAVE_DECL_FESETTRAPENABLE
++#include "fp-gnuc99.c"
++#elif HAVE_GNUSPARC_IEEE_INTERFACE
+ #include "fp-gnusparc.c"
+ #elif HAVE_GNUM68K_IEEE_INTERFACE
+ #include "fp-gnum68k.c"
+@@ -43,8 +45,6 @@
+ # else
+ # include "fp-darwin86.c"
+ #endif
+-#elif HAVE_DECL_FEENABLEEXCEPT || HAVE_DECL_FESETTRAPENABLE
+-#include "fp-gnuc99.c"
+ #else
+ #include "fp-unknown.c"
+ #endif