head	1.1;
access;
symbols;
locks; strict;
comment	@# @;


1.1
date	2012.09.10.19.19.32;	author beat;	state Exp;
branches;
next	;


desc
@@


1.1
log
@SVN rev 304053 on 2012-09-10 19:19:32Z by beat

- Move libxul 1.9.2 to www/libxul19
- Update www/libxul to 10.0.7
- Update all dependent ports to use www/libxul19 (no functional changes)
- Bump PORTREVISION on ports where libxul is a run dependency as the
  resulting package will change.

Submitted by:	Jan Beich <jbeich@@tormail.org>
With hat:	gecko
@
text
@--- 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.
  */
+#if defined(__FreeBSD__)
+#include <sys/param.h>
+#endif
 #ifdef XP_OS2
 #define _PC_53  PC_53
 #define _MCW_EM MCW_EM
@@@@ -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() ((void)fedisableexcept(FE_ALL_EXCEPT))
+#else
+
 #define FIX_FPU() ((void)0)
 
+#endif /* defined(__FreeBSD__) && __FreeBSD_version >= 503000 */
+
 #endif
 
 JSBool
@
