aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authorJulio Merino <jmmv@FreeBSD.org>2015-10-17 03:31:12 +0800
committerJulio Merino <jmmv@FreeBSD.org>2015-10-17 03:31:12 +0800
commit1cd52004c2232faa833f926bdb54d0b55bbc01c0 (patch)
tree5925bdcc7d0f9b9e989c09e241330d065692022e /lang
parent939230399254989ec1221a0061bef0c7c4b2f144 (diff)
downloadfreebsd-ports-gnome-1cd52004c2232faa833f926bdb54d0b55bbc01c0.tar.gz
freebsd-ports-gnome-1cd52004c2232faa833f926bdb54d0b55bbc01c0.tar.zst
freebsd-ports-gnome-1cd52004c2232faa833f926bdb54d0b55bbc01c0.zip
Fix build on 64-bit big-endian machines.
Approved by: kwm (maintainer), bapt (mentor) Differential Revision: https://reviews.freebsd.org/D3397
Diffstat (limited to 'lang')
-rw-r--r--lang/spidermonkey170/files/patch-jsval.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/lang/spidermonkey170/files/patch-jsval.h b/lang/spidermonkey170/files/patch-jsval.h
new file mode 100644
index 000000000000..b4d219062c1b
--- /dev/null
+++ b/lang/spidermonkey170/files/patch-jsval.h
@@ -0,0 +1,19 @@
+Fix build on 64-bit big-endian machines.
+
+The jsuword type does not exist (which causes the build to break).
+Trying to define "word" as size_t triggers a static assertion due to
+jsval_layout growing too big.
+
+Therefore, do as the 64-bit little endian code path and just avoid
+defining the "word" field. Tested on ppc64.
+
+--- jsval.h.orig 2015-08-15 10:28:43.716780000 -0400
++++ jsval.h 2015-08-16 22:54:21.456094000 -0400
+@@ -304,7 +304,6 @@ typedef union jsval_layout
+ int32_t i32;
+ uint32_t u32;
+ JSWhyMagic why;
+- jsuword word;
+ } payload;
+ } s;
+ double asDouble;