2009-12-12 16:15:48 +01:00
|
|
|
--- 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.
|
|
|
|
*/
|
2007-03-19 12:42:52 +01:00
|
|
|
+#if defined(__FreeBSD__)
|
|
|
|
+#include <sys/param.h>
|
|
|
|
+#endif
|
2009-04-28 19:36:31 +02:00
|
|
|
#ifdef XP_OS2
|
|
|
|
#define _PC_53 PC_53
|
|
|
|
#define _MCW_EM MCW_EM
|
2009-12-12 16:15:48 +01:00
|
|
|
@@ -691,8 +694,16 @@
|
2007-03-19 12:42:52 +01:00
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
+#if defined(__FreeBSD__) && __FreeBSD_version >= 601000
|
|
|
|
+#include <fenv.h>
|
|
|
|
+#define FIX_FPU() (fedisableexcept(FE_ALL_EXCEPT))
|
|
|
|
+
|
|
|
|
+#else
|
|
|
|
+
|
|
|
|
#define FIX_FPU() ((void)0)
|
|
|
|
|
2009-04-28 19:36:31 +02:00
|
|
|
+#endif /* defined(__FreeBSD__) && __FreeBSD_version >= 503000 */
|
|
|
|
+
|
2007-03-19 12:42:52 +01:00
|
|
|
#endif
|
|
|
|
|
2009-04-28 19:36:31 +02:00
|
|
|
JSBool
|