Quellcode durchsuchen

apply FreeBSD 64bit fixes

Ralf S. Engelschall vor 22 Jahren
Ursprung
Commit
860e445290
2 geänderte Dateien mit 51 neuen und 1 gelöschten Zeilen
  1. 50 0
      mozilla/mozilla.patch
  2. 1 1
      mozilla/mozilla.spec

+ 50 - 0
mozilla/mozilla.patch

@@ -141,3 +141,53 @@
      }
  
      return mXftFont;
+--- nsprpub/pr/src/md/unix/unix.c.orig	Sat May 31 18:06:04 2003
++++ nsprpub/pr/src/md/unix/unix.c	Sat May 31 18:04:43 2003
+@@ -65,7 +65,8 @@
+  * PRInt32* pointer to a _PRSockLen_t* pointer.
+  */
+ #if defined(HAVE_SOCKLEN_T) \
+-    || (defined(LINUX) && defined(__GLIBC__) && __GLIBC__ >= 2)
++    || (defined(LINUX) && defined(__GLIBC__) && __GLIBC__ >= 2) \
++    || defined(FREEBSD)
+ #define _PRSockLen_t socklen_t
+ #elif defined(IRIX) || defined(HPUX) || defined(OSF1) || defined(SOLARIS) \
+     || defined(AIX4_1) || defined(LINUX) || defined(SONY) \
+@@ -73,7 +74,7 @@
+     || defined(SUNOS4) || defined(NCR) || defined(DARWIN) \
+     || defined(NEXTSTEP) || defined(QNX)
+ #define _PRSockLen_t int
+-#elif (defined(AIX) && !defined(AIX4_1)) || defined(FREEBSD) \
++#elif (defined(AIX) && !defined(AIX4_1)) \
+     || defined(NETBSD) || defined(OPENBSD) || defined(UNIXWARE) \
+     || defined(DGUX) || defined(VMS) || defined(NTO)
+ #define _PRSockLen_t size_t
+--- js/src/jsfun.c.orig	Fri May 30 20:55:38 2003
++++ js/src/jsfun.c	Fri May 30 20:54:24 2003
+@@ -1081,7 +1081,7 @@
+     JSString *atomstr;
+     char *propname;
+     JSScopeProperty *sprop;
+-    jsid userid;
++    uint32 userid;
+     JSAtom *atom;
+     uintN i, n, dupflag;
+     uint32 type;
+@@ -1157,7 +1157,7 @@
+                 userid = INT_TO_JSVAL(sprop->shortid);
+                 propname = ATOM_BYTES((JSAtom *)sprop->id);
+                 if (!JS_XDRUint32(xdr, &type) ||
+-                    !JS_XDRUint32(xdr, (uint32 *)&userid) ||
++                    !JS_XDRUint32(xdr, &userid) ||
+                     !JS_XDRCString(xdr, &propname)) {
+                     if (mark)
+                         JS_ARENA_RELEASE(&cx->tempPool, mark);
+@@ -1173,7 +1173,7 @@
+                 uintN attrs = JSPROP_ENUMERATE | JSPROP_PERMANENT;
+ 
+                 if (!JS_XDRUint32(xdr, &type) ||
+-                    !JS_XDRUint32(xdr, (uint32 *)&userid) ||
++                    !JS_XDRUint32(xdr, &userid) ||
+                     !JS_XDRCString(xdr, &propname)) {
+                     return JS_FALSE;
+                 }

+ 1 - 1
mozilla/mozilla.spec

@@ -37,7 +37,7 @@ Distribution: OpenPKG [EVAL]
 Group:        Web
 License:      MPL
 Version:      %{V_mozilla}
-Release:      20030508
+Release:      20030601
 
 #   package options
 %option       with_mailnews   no