openbsd-ports/devel/spidermonkey/patches/patch-jsval_h
landry 191bc6db26 Import devel/spidermonkey 1.8.5
- built from the official upstream release
- needed for upcoming gnome/js update
- this is not an update to lang/spidermonkey, as that new version was
  built upon Ffx 4 js engine and probably only works on amd64/i386/ppc.
It builds on sparc64 but is broken at runtime. Not marking BROKEN-* to
allow depending ports to build. Other archs untested.
- special care was taken to ensure it doesnt conflict with
  lang/spidermonkey (install versionned binaries/headers..)
- ports wanting to use it should use devel/spidermonkey>=1.8,<1.9 to
  ensure the correct version is picked up

Tested in an amd64 bulk build.
ok/prodding ajacoutot@
2012-04-07 13:48:18 +00:00

22 lines
726 B
Plaintext

$OpenBSD: patch-jsval_h,v 1.1.1.1 2012/04/07 13:48:18 landry Exp $
http://hg.mozilla.org/tracemonkey/rev/68203913d04c
--- jsval.h.orig Thu Mar 31 21:08:36 2011
+++ jsval.h Wed Apr 4 16:32:50 2012
@@ -347,6 +347,7 @@ typedef union jsval_layout
int32 i32;
uint32 u32;
JSWhyMagic why;
+ jsuword word;
} payload;
} s;
double asDouble;
@@ -815,7 +816,7 @@ extern "C++"
#else /* defined(JS_USE_JSVAL_JSID_STRUCT_TYPES) */
/* Use different primitive types so overloading works. */
-typedef JSVAL_ALIGNMENT uint64 jsval;
+typedef JSVAL_ALIGNMENT uint64_t jsval;
typedef ptrdiff_t jsid;
/* Internal helper macros */