freebsd-ports/deskutils/lightning-thunderbird/files/patch-mozilla-js-src-jsnum.cpp
Beat Gaetzi db20b8b870 - Add Lightning 1.0 Beta 1. This version works with Thunderbird 3.0 and
SeaMonkey 2.0.

Lightning brings the Sunbird calendar to the popular email client, Mozilla
Thunderbird and the SeaMonkey internet application suite. Since it's an
extension, Lightning is tightly integrated with Thunderbird or SeaMonkey,
allowing it to easily perform email-related calendaring tasks.

WWW:    http://www.mozilla.org/projects/calendar/lightning/

Thanks to:      Andreas Tobler <andreast-list AT fgznet.ch>
2010-08-03 20:35:04 +00:00

28 lines
619 B
C++

--- mozilla/js/src/jsnum.cpp.orig Sun Nov 5 18:37:07 2006
+++ mozilla/js/src/jsnum.cpp 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