From owner-freebsd-gnome@FreeBSD.ORG Tue Oct 9 18:59:50 2007 Return-Path: Delivered-To: freebsd-gnome@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E627016A41A for ; Tue, 9 Oct 2007 18:59:50 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from anuket.mj.niksun.com (gwnew.niksun.com [65.115.46.162]) by mx1.freebsd.org (Postfix) with ESMTP id 7BECC13C4AA for ; Tue, 9 Oct 2007 18:59:50 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from niksun.com (anuket [10.70.0.5]) by anuket.mj.niksun.com (8.13.6/8.13.6) with ESMTP id l99ITKv5067063; Tue, 9 Oct 2007 14:29:20 -0400 (EDT) (envelope-from jkim@FreeBSD.org) From: Jung-uk Kim To: freebsd-gnome@FreeBSD.org Date: Tue, 9 Oct 2007 14:29:13 -0400 User-Agent: KMail/1.6.2 References: <200710091424.49603.jkim@FreeBSD.org> In-Reply-To: <200710091424.49603.jkim@FreeBSD.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: Multipart/Mixed; boundary="Boundary-00=_+h8CHkINKbNGKQs" Message-Id: <200710091429.18420.jkim@FreeBSD.org> Cc: Greg Lewis , Kurt Miller Subject: Re: [PATCH] OJI fix for 64-bit platforms X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Oct 2007 18:59:51 -0000 --Boundary-00=_+h8CHkINKbNGKQs Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline On Tuesday 09 October 2007 02:24 pm, Jung-uk Kim wrote: > Java porting team is working on Java plugin support for amd64 and > we found the attached patch is necessary for 64-bit platforms to > support LiveConnect properly with the current Gecko browsers. The > patch is obtained from Mozilla trunk: > > http://bonsai.mozilla.org/cvsview2.cgi?command=DIFF&subdir=mozilla% >2Fjs%2Fsrc%2Fliveconnect&file=nsISecureLiveconnect.h&rev1=1.7&rev2=1 >.8&whitespace_mode=show&diff_mode=context > > All Mozilla browsers in ports collection (i.e., firefox, firefox15, > seamonkey, xulrunner, etc.) need it AFAIT. Sorry, wrong MIME type. Re-attached. Jung-uk Kim --Boundary-00=_+h8CHkINKbNGKQs Content-Type: text/plain; charset="iso-8859-1"; name="patch-js_src_liveconnect_nsISecureLiveconnect.h" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="patch-js_src_liveconnect_nsISecureLiveconnect.h" --- js/src/liveconnect/nsISecureLiveconnect.h 15 Nov 2003 00:11:06 -0000 1.7 +++ js/src/liveconnect/nsISecureLiveconnect.h 25 Jul 2006 14:56:10 -0000 @@ -51,7 +51,17 @@ #include "nsIFactory.h" #include "jni.h" +/* + * jint is 32 bit, jlong is 64 bit. So we must consider 64-bit platform. + * + * http://java.sun.com/j2se/1.4.2/docs/guide/jni/spec/types.html#wp428 + */ + +#if JS_BYTES_PER_WORD == 8 +typedef jlong jsobject; +#else typedef jint jsobject; +#endif /* JS_BYTES_PER_WORD == 8 */ class nsISecureLiveconnect : public nsISupports { public: --Boundary-00=_+h8CHkINKbNGKQs--