summaryrefslogtreecommitdiff
path: root/www/mozilla/patches
diff options
context:
space:
mode:
authortaya <taya@pkgsrc.org>2001-09-16 14:03:07 +0000
committertaya <taya@pkgsrc.org>2001-09-16 14:03:07 +0000
commita55377397434395d86dd27b43ee6d4853bd24110 (patch)
tree1ababd1073b078dfc8702a5ecdddb084df76c31a /www/mozilla/patches
parent701b2925248b1a036d253f77250c55c34357ebcd (diff)
downloadpkgsrc-a55377397434395d86dd27b43ee6d4853bd24110.tar.gz
Update mozilla to 0.9.4 & add some patches for sparc64(not complete yet)
See release notes for detail. http://www.mozilla.org/releases/mozilla0.9.4/
Diffstat (limited to 'www/mozilla/patches')
-rw-r--r--www/mozilla/patches/patch-aq25
-rw-r--r--www/mozilla/patches/patch-au4
-rw-r--r--www/mozilla/patches/patch-aw4
-rw-r--r--www/mozilla/patches/patch-ax159
-rw-r--r--www/mozilla/patches/patch-ay11
-rw-r--r--www/mozilla/patches/patch-az6
-rw-r--r--www/mozilla/patches/patch-ba58
-rw-r--r--www/mozilla/patches/patch-bb33
-rw-r--r--www/mozilla/patches/patch-bc19
9 files changed, 176 insertions, 143 deletions
diff --git a/www/mozilla/patches/patch-aq b/www/mozilla/patches/patch-aq
deleted file mode 100644
index 33ae651420d..00000000000
--- a/www/mozilla/patches/patch-aq
+++ /dev/null
@@ -1,25 +0,0 @@
-$NetBSD: patch-aq,v 1.5 2001/08/04 07:05:19 taya Exp $
-
-diff -ru ../Orig/mozilla/security/nss/lib/freebl/Makefile ./security/nss/lib/freebl/Makefile
---- ../Orig/mozilla/security/nss/lib/freebl/Makefile Thu Jun 14 07:53:34 2001
-+++ ./security/nss/lib/freebl/Makefile Sat Aug 4 10:38:04 2001
-@@ -256,6 +256,19 @@
- MPI_OBJS = $(addprefix $(OBJDIR)/$(PROG_PREFIX), $(MPI_SRCS:.c=$(OBJ_SUFFIX)))
- MPI_OBJS += $(addprefix $(OBJDIR)/$(PROG_PREFIX), $(MPI_USERS:.c=$(OBJ_SUFFIX)))
-
-+#
-+# for NetBSD pkgsrc system
-+# NetBSD pkgsrc set env. variable 'CFLAGS'.
-+# This cause CFLAG inherit from config/autoconfig.mk
-+# CFLAG contains -pedantic and fail to compile dh.c
-+# SO filter-out -pedantic from CFLAGS
-+#
-+ifeq ($(OS_TARGET),NetBSD)
-+ CFLAGS := $(filter-out -pedantic,$(CFLAGS))
-+endif
-+
-+
-+
- $(MPI_OBJS): $(MPI_HDRS)
-
- $(OBJDIR)/$(PROG_PREFIX)mpprime$(OBJ_SUFFIX): primes.c
diff --git a/www/mozilla/patches/patch-au b/www/mozilla/patches/patch-au
index de9d8405601..bb8d1174e67 100644
--- a/www/mozilla/patches/patch-au
+++ b/www/mozilla/patches/patch-au
@@ -1,8 +1,8 @@
-$NetBSD: patch-au,v 1.4 2001/08/04 07:05:19 taya Exp $
+$NetBSD: patch-au,v 1.5 2001/09/16 14:03:08 taya Exp $
diff -ru ../Orig/mozilla/security/coreconf/NetBSD.mk ./security/coreconf/NetBSD.mk
--- ../Orig/mozilla/security/coreconf/NetBSD.mk Sat Sep 30 02:42:36 2000
-+++ ./security/coreconf/NetBSD.mk Sat Aug 4 10:38:06 2001
++++ ./security/coreconf/NetBSD.mk Sun Sep 16 20:47:00 2001
@@ -40,8 +40,13 @@
CCC = g++
RANLIB = ranlib
diff --git a/www/mozilla/patches/patch-aw b/www/mozilla/patches/patch-aw
index eb734c185c1..e4e7e74296e 100644
--- a/www/mozilla/patches/patch-aw
+++ b/www/mozilla/patches/patch-aw
@@ -1,8 +1,8 @@
-$NetBSD: patch-aw,v 1.3 2001/08/04 07:05:19 taya Exp $
+$NetBSD: patch-aw,v 1.4 2001/09/16 14:03:08 taya Exp $
diff -ru ../Orig/mozilla/widget/src/gtksuperwin/Makefile.in ./widget/src/gtksuperwin/Makefile.in
--- ../Orig/mozilla/widget/src/gtksuperwin/Makefile.in Sun Apr 29 04:46:11 2001
-+++ ./widget/src/gtksuperwin/Makefile.in Sat Aug 4 10:38:16 2001
++++ ./widget/src/gtksuperwin/Makefile.in Sun Sep 16 20:47:03 2001
@@ -25,6 +25,7 @@
MODULE = widget
LIBRARY_NAME = gtksuperwin
diff --git a/www/mozilla/patches/patch-ax b/www/mozilla/patches/patch-ax
index 74100687cf8..d77a7cdd716 100644
--- a/www/mozilla/patches/patch-ax
+++ b/www/mozilla/patches/patch-ax
@@ -1,22 +1,19 @@
-$NetBSD: patch-ax,v 1.2 2001/08/04 07:05:19 taya Exp $
+$NetBSD: patch-ax,v 1.3 2001/09/16 14:03:08 taya Exp $
diff -ru ../Orig/mozilla/netwerk/base/src/nsSocketTransport.cpp ./netwerk/base/src/nsSocketTransport.cpp
---- ../Orig/mozilla/netwerk/base/src/nsSocketTransport.cpp Wed Jul 25 16:53:13 2001
-+++ ./netwerk/base/src/nsSocketTransport.cpp Sat Aug 4 10:38:21 2001
-@@ -170,8 +170,12 @@
+--- ../Orig/mozilla/netwerk/base/src/nsSocketTransport.cpp Wed Aug 22 09:24:26 2001
++++ ./netwerk/base/src/nsSocketTransport.cpp Sun Sep 16 20:47:05 2001
+@@ -170,8 +170,7 @@
//
// Set up Internet defaults...
//
-+#if 0
- memset(&mNetAddress, 0, sizeof(mNetAddress));
- PR_SetNetAddr(PR_IpAddrAny, PR_AF_INET6, 0, &mNetAddress);
-+#else
+- memset(&mNetAddress, 0, sizeof(mNetAddress));
+- PR_SetNetAddr(PR_IpAddrAny, PR_AF_INET6, 0, &mNetAddress);
+ mNetAddressList = NULL;
-+#endif
//
// Initialize the global connect timeout value if necessary...
-@@ -220,6 +224,13 @@
+@@ -220,6 +219,13 @@
nsAutoMonitor::DestroyMonitor(mMonitor);
mMonitor = nsnull;
}
@@ -30,53 +27,42 @@ diff -ru ../Orig/mozilla/netwerk/base/src/nsSocketTransport.cpp ./netwerk/base/s
}
-@@ -604,14 +615,20 @@
+@@ -604,14 +610,13 @@
//
// The hostname has not been resolved yet...
//
-+#if 0
- if (PR_IsNetAddrType(&mNetAddress, PR_IpAddrAny)) {
-+#else
+- if (PR_IsNetAddrType(&mNetAddress, PR_IpAddrAny)) {
+ if (mNetAddressList == NULL) {
-+#endif
//
// Initialize the port used for the connection...
//
// XXX: The list of ports must be restricted - see net_bad_ports_table[] in
// mozilla/network/main/mkconect.c
//
-+#if 0
- mNetAddress.ipv6.port = PR_htons(((mProxyPort != -1 && !mProxyTransparent) ? mProxyPort : mPort));
-+#endif
+- mNetAddress.ipv6.port = PR_htons(((mProxyPort != -1 && !mProxyTransparent) ? mProxyPort : mPort));
nsCOMPtr<nsIDNSService> pDNSService(do_GetService(kDNSService, &rv));
if (NS_FAILED(rv)) return rv;
-@@ -635,7 +652,11 @@
+@@ -635,7 +640,7 @@
//
// The DNS lookup has finished... It has either failed or succeeded.
//
-+#if 0
- if (NS_FAILED(mStatus) || !PR_IsNetAddrType(&mNetAddress, PR_IpAddrAny)) {
-+#else
+- if (NS_FAILED(mStatus) || !PR_IsNetAddrType(&mNetAddress, PR_IpAddrAny)) {
+ if (NS_FAILED(mStatus) || mNetAddressList != NULL) {
-+#endif
mDNSRequest = 0;
rv = mStatus;
}
-@@ -795,7 +816,12 @@
+@@ -795,7 +800,8 @@
// This is only done the first time doConnection(...) is called.
//
if (NS_SUCCEEDED(rv)) {
-+#if 0
- status = PR_Connect(mSocketFD, &mNetAddress, gConnectTimeout);
-+#else
+- status = PR_Connect(mSocketFD, &mNetAddress, gConnectTimeout);
+try_again:
+ status = PR_Connect(mSocketFD, &(mNetAddressp->mNetAddress), gConnectTimeout);
-+#endif
if (PR_SUCCESS != status) {
PRErrorCode code = PR_GetError();
//
-@@ -820,6 +846,9 @@
+@@ -820,6 +826,9 @@
//
else {
// Connection refused...
@@ -86,7 +72,7 @@ diff -ru ../Orig/mozilla/netwerk/base/src/nsSocketTransport.cpp ./netwerk/base/s
LOG(("nsSocketTransport: Connection Refused [%s:%d %x]. PRErrorCode = %x\n",
mHostName, mPort, this, code));
rv = NS_ERROR_CONNECTION_REFUSED;
-@@ -833,11 +862,17 @@
+@@ -833,11 +842,17 @@
//
else if (aSelectFlags) {
if (PR_POLL_EXCEPT & aSelectFlags) {
@@ -104,80 +90,65 @@ diff -ru ../Orig/mozilla/netwerk/base/src/nsSocketTransport.cpp ./netwerk/base/s
LOG(("nsSocketTransport: Connection Refused via PR_POLL_HUP. [%s:%d %x].\n",
mHostName, mPort, this));
rv = NS_ERROR_CONNECTION_REFUSED;
-@@ -880,7 +915,11 @@
+@@ -880,7 +895,7 @@
//
// The hostname has not been resolved yet...
//
-+#if 0
- if (PR_IsNetAddrType(&mNetAddress, PR_IpAddrAny)) {
-+#else
+- if (PR_IsNetAddrType(&mNetAddress, PR_IpAddrAny)) {
+ if (mNetAddressList == NULL) {
-+#endif
nsCOMPtr<nsIDNSService> pDNSService(do_GetService(kDNSService, &rv));
if (NS_FAILED(rv)) return rv;
-@@ -899,6 +938,7 @@
+@@ -899,16 +914,19 @@
return NS_ERROR_FAILURE;
}
-+#if 0
- if (addr.raw.family == PR_AF_INET)
- PR_ConvertIPv4AddrToIPv6(addr.inet.ip, &mNetAddress.ipv6.ip);
- else
-@@ -909,6 +949,21 @@
-
- LOG(("address { family=%hu, port=%hu }\n",
- mNetAddress.ipv6.family, PR_ntohs(mNetAddress.ipv6.port)));
-+#else
+/****************/
+ mNetAddressList = new PRNetAddrList;
+ mNetAddressList->next = NULL;
-+ if (addr.raw.family == PR_AF_INET)
+ if (addr.raw.family == PR_AF_INET)
+- PR_ConvertIPv4AddrToIPv6(addr.inet.ip, &mNetAddress.ipv6.ip);
+ PR_ConvertIPv4AddrToIPv6(addr.inet.ip, &(mNetAddressList->mNetAddress.ipv6.ip));
-+ else
+ else
+- memcpy(&mNetAddress.ipv6.ip, &addr.ipv6.ip, sizeof(mNetAddress.ipv6.ip));
+ memcpy(&(mNetAddressList->mNetAddress.ipv6.ip), &addr.ipv6.ip, sizeof(mNetAddressList->mNetAddress.ipv6.ip));
-+
+
+- mNetAddress.ipv6.port
+ mNetAddressList->mNetAddress.ipv6.port
-+ = PR_htons(((mProxyPort != -1 && !mProxyTransparent) ? mProxyPort : mPort));
-+
-+ LOG(("address { family=%hu, port=%hu }\n",
+ = PR_htons(((mProxyPort != -1 && !mProxyTransparent) ? mProxyPort : mPort));
+
+ LOG(("address { family=%hu, port=%hu }\n",
+- mNetAddress.ipv6.family, PR_ntohs(mNetAddress.ipv6.port)));
+ mNetAddressList->mNetAddress.ipv6.family, PR_ntohs(mNetAddressList->mNetAddress.ipv6.port)));
-+#endif
}
//
-@@ -1340,6 +1395,7 @@
- return NS_OK;
- }
-
-+#if 0
- NS_IMETHODIMP
- nsSocketTransport::OnFound(nsISupports *aContext,
- const char* aHostName,
-@@ -1376,6 +1432,51 @@
-
- return rv;
- }
-+#else
-+NS_IMETHODIMP
-+nsSocketTransport::OnFound(nsISupports *aContext,
-+ const char* aHostName,
-+ nsHostEnt *aHostEnt)
-+{
-+ // Enter the socket transport lock...
-+ nsAutoMonitor mon(mMonitor);
-+ nsresult rv = NS_OK;
+@@ -1373,21 +1391,28 @@
+ // Enter the socket transport lock...
+ nsAutoMonitor mon(mMonitor);
+ nsresult rv = NS_OK;
+ char **p;
+ PRNetAddrList **addrp = &mNetAddressList;
-+
-+ if (aHostEnt->hostEnt.h_addr_list && aHostEnt->hostEnt.h_addr_list[0]) {
+
+ if (aHostEnt->hostEnt.h_addr_list && aHostEnt->hostEnt.h_addr_list[0]) {
+- if (aHostEnt->hostEnt.h_addrtype == PR_AF_INET6)
+- memcpy(&mNetAddress.ipv6.ip, aHostEnt->hostEnt.h_addr_list[0], sizeof(mNetAddress.ipv6.ip));
+- else
+- PR_ConvertIPv4AddrToIPv6(*(PRUint32*)aHostEnt->hostEnt.h_addr_list[0], &mNetAddress.ipv6.ip);
+ for(p = aHostEnt->hostEnt.h_addr_list; *p; p++){
+ *addrp = new PRNetAddrList;
+ (*addrp)->next = NULL;
+ (*addrp)->mNetAddress.ipv6.port = PR_htons(((mProxyPort != -1 && !mProxyTransparent) ? mProxyPort : mPort));
+ (*addrp)->mNetAddress.raw.family = PR_AF_INET6;
+ memcpy(&((*addrp)->mNetAddress.ipv6.ip), *p, sizeof((*addrp)->mNetAddress.ipv6.ip));
-+#if defined(PR_LOGGING)
+ #if defined(PR_LOGGING)
+- char addrbuf[50];
+- PR_NetAddrToString(&mNetAddress, addrbuf, sizeof(addrbuf));
+- LOG(("nsSocketTransport: OnFound(...) [%s:%d %x]."
+- " DNS lookup succeeded => %s (%s)\n",
+- mHostName, mPort, this,
+- aHostEnt->hostEnt.h_name,
+- addrbuf));
+ char addrbuf[50];
+ PR_NetAddrToString(&((*addrp)->mNetAddress), addrbuf, sizeof(addrbuf));
+ LOG(("nsSocketTransport: OnFound(...) [%s:%d %x]."
@@ -185,48 +156,28 @@ diff -ru ../Orig/mozilla/netwerk/base/src/nsSocketTransport.cpp ./netwerk/base/s
+ mHostName, mPort, this,
+ aHostEnt->hostEnt.h_name,
+ addrbuf));
-+#endif
+ #endif
+ addrp = &((*addrp)->next);
+ }
+ mNetAddressp = mNetAddressList;
-+ } else {
-+ // XXX: What should happen here? The GetHostByName(...) succeeded but
-+ // there are *no* A records...
-+ rv = NS_ERROR_FAILURE;
-+
-+ LOG(("nsSocketTransport: OnFound(...) [%s:%d %x]."
-+ " DNS lookup succeeded (%s) but no address returned!",
-+ mHostName, mPort, this,
-+ aHostEnt->hostEnt.h_name));
-+ }
-+
-+ return rv;
-+}
-+#endif
-
- NS_IMETHODIMP
- nsSocketTransport::OnStopLookup(nsISupports *aContext,
-@@ -1395,7 +1496,11 @@
+ } else {
+ // XXX: What should happen here? The GetHostByName(...) succeeded but
+ // there are *no* A records...
+@@ -1420,7 +1445,7 @@
// If the lookup failed, set the status...
if (NS_FAILED(aStatus))
mStatus = aStatus;
-+#if 0
- else if (PR_IsNetAddrType(&mNetAddress, PR_IpAddrAny))
-+#else
+- else if (PR_IsNetAddrType(&mNetAddress, PR_IpAddrAny))
+ else if (mNetAddressList == NULL)
-+#endif
mStatus = NS_ERROR_ABORT;
// Start processing the transport again - if necessary...
-@@ -1722,7 +1827,11 @@
+@@ -1741,7 +1766,7 @@
*_retval = (char*)nsMemory::Alloc(aLen);
if (!*_retval) return NS_ERROR_FAILURE;
-+#if 0
- PRStatus status = PR_NetAddrToString(&mNetAddress, *_retval, aLen);
-+#else
+- PRStatus status = PR_NetAddrToString(&mNetAddress, *_retval, aLen);
+ PRStatus status = PR_NetAddrToString(&mNetAddressList->mNetAddress, *_retval, aLen);
-+#endif
if (PR_FAILURE == status) {
nsMemory::Free(*_retval);
diff --git a/www/mozilla/patches/patch-ay b/www/mozilla/patches/patch-ay
index 47fe790258c..2947e793caa 100644
--- a/www/mozilla/patches/patch-ay
+++ b/www/mozilla/patches/patch-ay
@@ -1,8 +1,8 @@
-$NetBSD: patch-ay,v 1.2 2001/08/04 07:05:19 taya Exp $
+$NetBSD: patch-ay,v 1.3 2001/09/16 14:03:09 taya Exp $
diff -ru ../Orig/mozilla/netwerk/base/src/nsSocketTransport.h ./netwerk/base/src/nsSocketTransport.h
--- ../Orig/mozilla/netwerk/base/src/nsSocketTransport.h Sat May 12 06:03:21 2001
-+++ ./netwerk/base/src/nsSocketTransport.h Sat Aug 4 10:38:28 2001
++++ ./netwerk/base/src/nsSocketTransport.h Sun Sep 16 20:47:10 2001
@@ -107,6 +107,11 @@
eSocketDNS_Wait = 0x2020
};
@@ -15,16 +15,13 @@ diff -ru ../Orig/mozilla/netwerk/base/src/nsSocketTransport.h ./netwerk/base/src
//
// This is the default timeout value (in milliseconds) for sockets which have
// no activity...
-@@ -231,7 +236,12 @@
+@@ -231,7 +236,8 @@
PRIntervalTime mLastActiveTime;
PRCList mListLink;
PRMonitor* mMonitor;
-+#if 0
- PRNetAddr mNetAddress;
-+#else
+- PRNetAddr mNetAddress;
+ PRNetAddrList *mNetAddressList;
+ PRNetAddrList *mNetAddressp;
-+#endif
nsSocketOperation mOperation;
nsCOMPtr<nsISupports> mSecurityInfo;
diff --git a/www/mozilla/patches/patch-az b/www/mozilla/patches/patch-az
index 77a823c6b31..8bbece36dad 100644
--- a/www/mozilla/patches/patch-az
+++ b/www/mozilla/patches/patch-az
@@ -1,8 +1,8 @@
-$NetBSD: patch-az,v 1.1 2001/08/04 07:05:19 taya Exp $
+$NetBSD: patch-az,v 1.2 2001/09/16 14:03:09 taya Exp $
diff -ru ../Orig/mozilla/directory/c-sdk/ldap/include/portable.h ./directory/c-sdk/ldap/include/portable.h
---- ../Orig/mozilla/directory/c-sdk/ldap/include/portable.h Sat Jul 28 07:02:31 2001
-+++ ./directory/c-sdk/ldap/include/portable.h Sat Aug 4 10:38:30 2001
+--- ../Orig/mozilla/directory/c-sdk/ldap/include/portable.h Wed Aug 15 16:14:54 2001
++++ ./directory/c-sdk/ldap/include/portable.h Sun Sep 16 20:47:15 2001
@@ -98,7 +98,7 @@
* some systems don't have the BSD re_comp and re_exec routines
*/
diff --git a/www/mozilla/patches/patch-ba b/www/mozilla/patches/patch-ba
new file mode 100644
index 00000000000..9419c7d9a07
--- /dev/null
+++ b/www/mozilla/patches/patch-ba
@@ -0,0 +1,58 @@
+$NetBSD: patch-ba,v 1.1 2001/09/16 14:03:09 taya Exp $
+
+diff -ru ../Orig/mozilla/nsprpub/pr/include/md/_netbsd.cfg ./nsprpub/pr/include/md/_netbsd.cfg
+--- ../Orig/mozilla/nsprpub/pr/include/md/_netbsd.cfg Sat Dec 2 06:29:17 2000
++++ ./nsprpub/pr/include/md/_netbsd.cfg Sun Sep 16 20:47:23 2001
+@@ -91,6 +91,52 @@
+ #define PR_ALIGN_OF_DOUBLE 4
+ #define PR_ALIGN_OF_POINTER 4
+
++#elif defined(__sparc_v9__)
++
++#undef IS_LITTLE_ENDIAN
++#define IS_BIG_ENDIAN 1
++#define HAVE_LONG_LONG
++#define HAVE_ALIGNED_DOUBLES
++#define HAVE_ALIGNED_LONGLONGS
++
++#define PR_BYTES_PER_BYTE 1
++#define PR_BYTES_PER_SHORT 2
++#define PR_BYTES_PER_INT 4
++#define PR_BYTES_PER_INT64 8
++#define PR_BYTES_PER_LONG 8
++#define PR_BYTES_PER_FLOAT 4
++#define PR_BYTES_PER_DOUBLE 8
++#define PR_BYTES_PER_WORD 8
++#define PR_BYTES_PER_DWORD 8
++#define PR_BYTES_PER_WORD_LOG2 3
++#define PR_BYTES_PER_DWORD_LOG2 3
++
++#define PR_BITS_PER_BYTE 8
++#define PR_BITS_PER_SHORT 16
++#define PR_BITS_PER_INT 32
++#define PR_BITS_PER_INT64 64
++#define PR_BITS_PER_LONG 64
++#define PR_BITS_PER_FLOAT 32
++#define PR_BITS_PER_DOUBLE 64
++#define PR_BITS_PER_WORD 64
++
++#define PR_BITS_PER_BYTE_LOG2 3
++#define PR_BITS_PER_SHORT_LOG2 4
++#define PR_BITS_PER_INT_LOG2 5
++#define PR_BITS_PER_INT64_LOG2 6
++#define PR_BITS_PER_LONG_LOG2 6
++#define PR_BITS_PER_FLOAT_LOG2 5
++#define PR_BITS_PER_DOUBLE_LOG2 6
++#define PR_BITS_PER_WORD_LOG2 6
++
++#define PR_ALIGN_OF_SHORT 2
++#define PR_ALIGN_OF_INT 4
++#define PR_ALIGN_OF_LONG 8
++#define PR_ALIGN_OF_INT64 8
++#define PR_ALIGN_OF_FLOAT 4
++#define PR_ALIGN_OF_DOUBLE 8
++#define PR_ALIGN_OF_POINTER 8
++
+ #elif defined(__sparc__) || defined(__MIPSEB__)
+
+ #undef IS_LITTLE_ENDIAN
diff --git a/www/mozilla/patches/patch-bb b/www/mozilla/patches/patch-bb
new file mode 100644
index 00000000000..db98aa49999
--- /dev/null
+++ b/www/mozilla/patches/patch-bb
@@ -0,0 +1,33 @@
+$NetBSD: patch-bb,v 1.1 2001/09/16 14:03:09 taya Exp $
+
+diff -ru ../Orig/mozilla/nsprpub/pr/include/md/_netbsd.h ./nsprpub/pr/include/md/_netbsd.h
+--- ../Orig/mozilla/nsprpub/pr/include/md/_netbsd.h Fri Dec 29 02:04:04 2000
++++ ./nsprpub/pr/include/md/_netbsd.h Sun Sep 16 20:47:26 2001
+@@ -48,6 +48,8 @@
+ #define _PR_SI_ARCHITECTURE "m68k"
+ #elif defined(__powerpc__)
+ #define _PR_SI_ARCHITECTURE "powerpc"
++#elif defined(__sparc_v9__)
++#define _PR_SI_ARCHITECTURE "sparc64"
+ #elif defined(__sparc__)
+ #define _PR_SI_ARCHITECTURE "sparc"
+ #elif defined(__mips__)
+@@ -106,7 +108,17 @@
+ }
+ #define _MD_GET_SP(_thread) CONTEXT(_thread)[2]
+ #endif
+-#ifdef __sparc__
++#ifdef __sparc_v9__
++#define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \
++{ \
++ sigsetjmp(CONTEXT(_thread), 1); \
++ CONTEXT(_thread)[1] = (unsigned char*) ((_sp) - 176 - 0x7ff); \
++ CONTEXT(_thread)[2] = (long) _main; \
++ CONTEXT(_thread)[3] = (long) _main + 4; \
++ *status = PR_TRUE; \
++}
++#define _MD_GET_SP(_thread) (CONTEXT(_thread)[2]+0x7ff)
++#elif defined(__sparc__)
+ #define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \
+ { \
+ sigsetjmp(CONTEXT(_thread), 1); \
diff --git a/www/mozilla/patches/patch-bc b/www/mozilla/patches/patch-bc
new file mode 100644
index 00000000000..6ca14fabbd9
--- /dev/null
+++ b/www/mozilla/patches/patch-bc
@@ -0,0 +1,19 @@
+$NetBSD: patch-bc,v 1.1 2001/09/16 14:03:10 taya Exp $
+
+diff -ru ../Orig/mozilla/xpcom/reflect/xptcall/src/md/unix/Makefile.in ./xpcom/reflect/xptcall/src/md/unix/Makefile.in
+--- ../Orig/mozilla/xpcom/reflect/xptcall/src/md/unix/Makefile.in Tue Jun 19 07:10:25 2001
++++ ./xpcom/reflect/xptcall/src/md/unix/Makefile.in Sun Sep 16 20:47:28 2001
+@@ -235,6 +235,13 @@
+ CPPSRCS := xptcinvoke_sparc_netbsd.cpp xptcstubs_sparc_netbsd.cpp
+ ASFILES := xptcinvoke_asm_sparc_netbsd.s xptcstubs_asm_sparc_netbsd.s
+ endif
++#
++# NetBSD/SPARC64
++#
++ifeq ($(OS_ARCH)$(OS_TEST),NetBSDsparc64)
++CPPSRCS := xptcinvoke_sparc64_netbsd.cpp xptcstubs_sparc64_netbsd.cpp
++ASFILES := xptcinvoke_asm_sparc64_netbsd.s xptcstubs_asm_sparc64_netbsd.s
++endif
+ #
+ # Solaris/SPARC
+ #