diff options
author | Beat Gaetzi <beat@FreeBSD.org> | 2010-08-29 15:17:43 +0000 |
---|---|---|
committer | Beat Gaetzi <beat@FreeBSD.org> | 2010-08-29 15:17:43 +0000 |
commit | 901e6d609d43fc3f053f1f06851aa0ad3679c41c (patch) | |
tree | 8eb3a08711935b668cbdfeb52c430c760e7baca0 /www/firefox36/files/patch-js_src_jsnum.cpp | |
parent | - Prepare bsd.gecko.mk to unbreak gecko ports with recent versions of GCC (diff) |
- Unbreak with recent versions of GCC
PR: ports/142736
Submitted by: bf <bf1783 AT gmail.com>
Diffstat (limited to 'www/firefox36/files/patch-js_src_jsnum.cpp')
-rw-r--r-- | www/firefox36/files/patch-js_src_jsnum.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/www/firefox36/files/patch-js_src_jsnum.cpp b/www/firefox36/files/patch-js_src_jsnum.cpp index cf29e7c9a869..c997f4c6b8ba 100644 --- a/www/firefox36/files/patch-js_src_jsnum.cpp +++ b/www/firefox36/files/patch-js_src_jsnum.cpp @@ -1,5 +1,5 @@ ---- js/src/jsnum.cpp.orig 2009-10-14 18:03:30.000000000 +0200 -+++ js/src/jsnum.cpp 2009-10-15 21:49:44.000000000 +0200 +--- js/src/jsnum.cpp.orig 2010-01-05 22:35:17.000000000 -0500 ++++ js/src/jsnum.cpp 2010-01-11 05:10:19.000000000 -0500 @@ -43,6 +43,9 @@ /* * JS number type and wrapper class. @@ -10,14 +10,16 @@ #ifdef XP_OS2 #define _PC_53 PC_53 #define _MCW_EM MCW_EM -@@ -691,8 +694,16 @@ +@@ -691,8 +694,18 @@ #else +#if defined(__FreeBSD__) && __FreeBSD_version >= 601000 ++#if __BSD_VISIBLE == 0 ++#error __BSD_VISIBLE is zero, so fedisableexcept is not defined ++#endif +#include <fenv.h> -+#define FIX_FPU() (fedisableexcept(FE_ALL_EXCEPT)) -+ ++#define FIX_FPU() ((void)fedisableexcept(FE_ALL_EXCEPT)) +#else + #define FIX_FPU() ((void)0) |