summaryrefslogtreecommitdiff
path: root/lang/spidermonkey185/patches/patch-v8-dtoa_platform.cc
diff options
context:
space:
mode:
authorfhajny <fhajny>2016-11-16 13:13:43 +0000
committerfhajny <fhajny>2016-11-16 13:13:43 +0000
commit507731131bb3dc3daff5a5ce5b67cdddfdd9b2be (patch)
tree0879e21fabe0d22dd0a4fc87d67aa352b75ee6cb /lang/spidermonkey185/patches/patch-v8-dtoa_platform.cc
parent78059a16f2d37441627394f46e50abb1005a90e1 (diff)
downloadpkgsrc-507731131bb3dc3daff5a5ce5b67cdddfdd9b2be.tar.gz
Import lang/spidermonkey185 based on wip/spidermonkey185.
Versioned as 1.8.5 despite the distfile version, as that seemed like a confusing misnomer (especially compared to other branches versioning). SpiderMonkey is the code-name for the Mozilla's C implementation of JavaScript.
Diffstat (limited to 'lang/spidermonkey185/patches/patch-v8-dtoa_platform.cc')
-rw-r--r--lang/spidermonkey185/patches/patch-v8-dtoa_platform.cc20
1 files changed, 20 insertions, 0 deletions
diff --git a/lang/spidermonkey185/patches/patch-v8-dtoa_platform.cc b/lang/spidermonkey185/patches/patch-v8-dtoa_platform.cc
new file mode 100644
index 00000000000..8d147bf3be5
--- /dev/null
+++ b/lang/spidermonkey185/patches/patch-v8-dtoa_platform.cc
@@ -0,0 +1,20 @@
+$NetBSD: patch-v8-dtoa_platform.cc,v 1.1 2016/11/16 13:13:44 fhajny Exp $
+
+fpclassify is defined on Illumos.
+
+--- v8-dtoa/platform.cc.orig 2011-03-31 19:08:36.000000000 +0000
++++ v8-dtoa/platform.cc
+@@ -111,6 +111,7 @@ int fpclassify(double x) {
+ #endif // _MSC_VER
+
+ #ifdef SOLARIS
++#ifndef fpclassify
+
+ #include <ieeefp.h>
+
+@@ -134,4 +135,5 @@ int fpclassify(double x) {
+ }
+
+ }
++#endif fpclassify
+ #endif // SOLARIS