aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Johnson <ahze@FreeBSD.org>2006-02-18 18:58:09 +0000
committerMichael Johnson <ahze@FreeBSD.org>2006-02-18 18:58:09 +0000
commitd6d05683266530f106cf5b8f218d8754d05eeb02 (patch)
tree8519e9cc6127f6e67c8ea048a7c10974ca1b9cc6
parent0b4a9036bce4f17ae53ab80efde6304a0d33081e (diff)
downloadports-d6d05683266530f106cf5b8f218d8754d05eeb02.tar.gz
ports-d6d05683266530f106cf5b8f218d8754d05eeb02.zip
Notes
-rw-r--r--www/kompozer/files/patch-extensions_transformiix_source_base_Double.cpp23
-rw-r--r--www/nvu/files/patch-extensions_transformiix_source_base_Double.cpp23
2 files changed, 46 insertions, 0 deletions
diff --git a/www/kompozer/files/patch-extensions_transformiix_source_base_Double.cpp b/www/kompozer/files/patch-extensions_transformiix_source_base_Double.cpp
new file mode 100644
index 000000000000..38ce7ec12167
--- /dev/null
+++ b/www/kompozer/files/patch-extensions_transformiix_source_base_Double.cpp
@@ -0,0 +1,23 @@
+--- extensions/transformiix/source/base/Double.cpp.orig Mon Feb 6 15:40:52 2006
++++ extensions/transformiix/source/base/Double.cpp Mon Feb 6 15:51:01 2006
+@@ -52,11 +52,16 @@
+ //A trick to handle IEEE floating point exceptions on FreeBSD - E.D.
+ #ifdef __FreeBSD__
+ #include <ieeefp.h>
+-#ifdef __alpha__
+-fp_except_t allmask = FP_X_INV|FP_X_OFL|FP_X_UFL|FP_X_DZ|FP_X_IMP;
+-#else
+-fp_except_t allmask = FP_X_INV|FP_X_OFL|FP_X_UFL|FP_X_DZ|FP_X_IMP|FP_X_DNML;
++#if !defined(FP_X_DNML)
++#define FP_X_DNML 0
+ #endif
++#if !defined(FP_X_STK)
++#define FP_X_STK 0
++#endif
++#if !defined(FP_X_IOV)
++#define FP_X_IOV 0
++#endif
++fp_except_t allmask = FP_X_INV|FP_X_OFL|FP_X_UFL|FP_X_DZ|FP_X_IMP|FP_X_DNML|FP_X_STK|FP_X_IOV;
+ fp_except_t oldmask = fpsetmask(~allmask);
+ #endif
+
diff --git a/www/nvu/files/patch-extensions_transformiix_source_base_Double.cpp b/www/nvu/files/patch-extensions_transformiix_source_base_Double.cpp
new file mode 100644
index 000000000000..38ce7ec12167
--- /dev/null
+++ b/www/nvu/files/patch-extensions_transformiix_source_base_Double.cpp
@@ -0,0 +1,23 @@
+--- extensions/transformiix/source/base/Double.cpp.orig Mon Feb 6 15:40:52 2006
++++ extensions/transformiix/source/base/Double.cpp Mon Feb 6 15:51:01 2006
+@@ -52,11 +52,16 @@
+ //A trick to handle IEEE floating point exceptions on FreeBSD - E.D.
+ #ifdef __FreeBSD__
+ #include <ieeefp.h>
+-#ifdef __alpha__
+-fp_except_t allmask = FP_X_INV|FP_X_OFL|FP_X_UFL|FP_X_DZ|FP_X_IMP;
+-#else
+-fp_except_t allmask = FP_X_INV|FP_X_OFL|FP_X_UFL|FP_X_DZ|FP_X_IMP|FP_X_DNML;
++#if !defined(FP_X_DNML)
++#define FP_X_DNML 0
+ #endif
++#if !defined(FP_X_STK)
++#define FP_X_STK 0
++#endif
++#if !defined(FP_X_IOV)
++#define FP_X_IOV 0
++#endif
++fp_except_t allmask = FP_X_INV|FP_X_OFL|FP_X_UFL|FP_X_DZ|FP_X_IMP|FP_X_DNML|FP_X_STK|FP_X_IOV;
+ fp_except_t oldmask = fpsetmask(~allmask);
+ #endif
+