openbsd-ports/www/mozilla-firefox/patches/patch-js_src_jsval_h
landry 20acf0c075 Add patches to let mozilla-firefox 4.0 at least build on sparc64.
- disable tracejit/methodjit
- add fix for https://bugzilla.mozilla.org/show_bug.cgi?id=618485
- add fix for https://bugzilla.mozilla.org/show_bug.cgi?id=589754
- don't force-enable assembler/jit on sparc64

It still doesn't run (endless loop at startup) due to 64-bits
jsval_layout (see https://bugzilla.mozilla.org/show_bug.cgi?id=577056)
but at least patches are in cvs, and the js shell can run simple things.
No change for other archs.
2011-04-05 09:00:42 +00:00

23 lines
796 B
Plaintext

$OpenBSD: patch-js_src_jsval_h,v 1.2 2011/04/05 09:00:42 landry Exp $
https://bugzilla.mozilla.org/show_bug.cgi?id=599764
https://bugzilla.mozilla.org/show_bug.cgi?id=618485
--- js/src/jsval.h.orig Thu Feb 3 21:11:50 2011
+++ js/src/jsval.h Thu Feb 17 20:36:07 2011
@@ -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 */