From cf4e117cdbf94bf75339cd49de4161a8c6189bbc Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sun, 29 Jul 2018 03:13:16 -0500 Subject: user/gsl: re-establish portability, fix PPC32 build --- user/gsl/gsl-2.4-portable.patch | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 user/gsl/gsl-2.4-portable.patch (limited to 'user/gsl/gsl-2.4-portable.patch') 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 + +-#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 -- cgit v1.2.3-60-g2f50