summaryrefslogtreecommitdiff
path: root/mail/lightning/files/patch-js_src_jsnum.c
diff options
context:
space:
mode:
authorMichael Johnson <ahze@FreeBSD.org>2006-11-19 00:58:54 +0000
committerMichael Johnson <ahze@FreeBSD.org>2006-11-19 00:58:54 +0000
commitcf5671975da11ff6efa681f2a2827c9e9a497db8 (patch)
treed28159062eaab4879d892ca821b0d4a396ee3c22 /mail/lightning/files/patch-js_src_jsnum.c
parent - Do not append version number to f2py executable (diff)
- Fix pthreads for sqlite3
- Merge some more patches from www/firefox Submitted by: sajd via irc.freenode.org/#FreeBSD-GNOME
Notes
Notes: svn path=/head/; revision=177549
Diffstat (limited to 'mail/lightning/files/patch-js_src_jsnum.c')
-rw-r--r--mail/lightning/files/patch-js_src_jsnum.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/mail/lightning/files/patch-js_src_jsnum.c b/mail/lightning/files/patch-js_src_jsnum.c
new file mode 100644
index 000000000000..a3ef2769ab9c
--- /dev/null
+++ b/mail/lightning/files/patch-js_src_jsnum.c
@@ -0,0 +1,28 @@
+--- js/src/jsnum.c.orig Sun Nov 5 18:37:07 2006
++++ js/src/jsnum.c Sun Nov 5 18:42:31 2006
+@@ -45,6 +45,9 @@
+ #if defined(XP_WIN) || defined(XP_OS2)
+ #include <float.h>
+ #endif
++#if defined(__FreeBSD__)
++#include <sys/param.h>
++#endif
+ #include <locale.h>
+ #include <limits.h>
+ #include <math.h>
+@@ -532,7 +535,15 @@ static jsdouble NaN;
+
+ #else
+
++#if defined(__FreeBSD__) && __FreeBSD_version >= 601000
++#include <fenv.h>
++#define FIX_FPU() (fedisableexcept(FE_ALL_EXCEPT))
++
++#else
++
+ #define FIX_FPU() ((void)0)
++
++#endif /* defined(__FreeBSD__) && __FreeBSD_version >= 503000 */
+
+ #endif
+