diff options
author | stephen <stephen@FreeBSD.org> | 2018-03-08 11:55:16 +0800 |
---|---|---|
committer | stephen <stephen@FreeBSD.org> | 2018-03-08 11:55:16 +0800 |
commit | 9c612112b7f5b02355d1882bc9122d068e8c14a9 (patch) | |
tree | 2f3c97bd66e5f24fb5a63bf53994350987633e86 | |
parent | 4816fe42f91bb3f46de8edc16cbea940b753042d (diff) | |
download | freebsd-ports-gnome-9c612112b7f5b02355d1882bc9122d068e8c14a9.tar.gz freebsd-ports-gnome-9c612112b7f5b02355d1882bc9122d068e8c14a9.tar.zst freebsd-ports-gnome-9c612112b7f5b02355d1882bc9122d068e8c14a9.zip |
- Fix build on armv6.
PR: ports/223277
Submitted by: mikael.urankar@gmail.com
-rw-r--r-- | math/octave/files/patch-libinterp_corefcn_sysdep.cc | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/math/octave/files/patch-libinterp_corefcn_sysdep.cc b/math/octave/files/patch-libinterp_corefcn_sysdep.cc new file mode 100644 index 000000000000..faae43687cf5 --- /dev/null +++ b/math/octave/files/patch-libinterp_corefcn_sysdep.cc @@ -0,0 +1,31 @@ +--- libinterp/corefcn/sysdep.cc.orig 2018-03-08 03:49:02 UTC ++++ libinterp/corefcn/sysdep.cc +@@ -61,6 +61,10 @@ along with Octave; see the file COPYING. + # include <omp.h> + #endif + ++#if defined (__FreeBSD__) && defined(__arm__) ++#include <fenv.h> ++#endif ++ + #include "cmd-edit.h" + #include "file-ops.h" + #include "lo-mappers.h" +@@ -97,6 +101,7 @@ along with Octave; see the file COPYING. + static void + BSD_init (void) + { ++#if (defined (__FreeBSD__) && !defined(__arm__)) + # if defined (HAVE_FLOATINGPOINT_H) + // Disable trapping on common exceptions. + # if ! defined (FP_X_DNML) +@@ -104,6 +109,9 @@ BSD_init (void) + # endif + fpsetmask (~(FP_X_OFL|FP_X_INV|FP_X_DZ|FP_X_DNML|FP_X_UFL|FP_X_IMP)); + # endif ++#else // FreeBSD && arm ++ fedisableexcept(FE_ALL_EXCEPT); ++#endif // FreeBSD && arm + } + #endif + |