aboutsummaryrefslogtreecommitdiffstats
path: root/www/firefox-esr/files/patch-js_src_jsnum.cpp
blob: cf29e7c9a8694d67fac66e30f7f3abfc5ee5814e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--- 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
@@ -43,6 +43,9 @@
 /*
  * JS number type and wrapper class.
  */
+#if defined(__FreeBSD__)
+#include <sys/param.h>
+#endif
 #ifdef XP_OS2
 #define _PC_53  PC_53
 #define _MCW_EM MCW_EM
@@ -691,8 +694,16 @@
 
 #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
 
 JSBool