diff options
Diffstat (limited to 'www/firefox/patches/patch-bb')
-rw-r--r-- | www/firefox/patches/patch-bb | 61 |
1 files changed, 8 insertions, 53 deletions
diff --git a/www/firefox/patches/patch-bb b/www/firefox/patches/patch-bb index cb18f32520a..fdcd37c1c2a 100644 --- a/www/firefox/patches/patch-bb +++ b/www/firefox/patches/patch-bb @@ -1,36 +1,19 @@ -$NetBSD: patch-bb,v 1.4 2005/09/22 14:14:04 jlam Exp $ +$NetBSD: patch-bb,v 1.5 2005/12/10 13:47:22 taya Exp $ ---- nsprpub/pr/include/md/_netbsd.h.orig 2003-09-11 17:24:53.000000000 +0000 -+++ nsprpub/pr/include/md/_netbsd.h -@@ -44,16 +44,26 @@ +diff -ruN ../Orig/mozilla/nsprpub/pr/include/md/_netbsd.h ./nsprpub/pr/include/md/_netbsd.h +--- ../Orig/mozilla/nsprpub/pr/include/md/_netbsd.h 2004-05-20 00:37:10.000000000 +0900 ++++ ./nsprpub/pr/include/md/_netbsd.h 2005-12-04 19:14:22.000000000 +0900 +@@ -44,6 +44,8 @@ #define _PR_SI_ARCHITECTURE "x86" #elif defined(__alpha__) #define _PR_SI_ARCHITECTURE "alpha" -+#elif defined(__amd64__) ++#elif defined(__amd64__) +#define _PR_SI_ARCHITECTURE "amd64" #elif defined(__m68k__) #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__) - #define _PR_SI_ARCHITECTURE "mips" - #elif defined(__arm32__) - #define _PR_SI_ARCHITECTURE "arm32" -+#elif defined(__ARMEL__) -+#define _PR_SI_ARCHITECTURE "armel" -+#elif defined(__ARMEL__) -+#define _PR_SI_ARCHITECTURE "armeb" -+#elif defined(__arm__) -+#define _PR_SI_ARCHITECTURE "arm" - #endif - - #if defined(__ELF__) -@@ -86,6 +96,12 @@ - #define _PR_INET6_PROBE +@@ -95,6 +97,12 @@ + #define _PR_HAVE_GETPROTO_R_INT #endif +#if __NetBSD_Version__ >= 106370000 @@ -42,31 +25,3 @@ $NetBSD: patch-bb,v 1.4 2005/09/22 14:14:04 jlam Exp $ #define USE_SETJMP #ifndef _PR_PTHREADS -@@ -108,7 +124,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); \ -@@ -150,7 +176,7 @@ - } - #define _MD_GET_SP(_thread) CONTEXT(_thread)[32] - #endif --#ifdef __arm32__ -+#ifdef __arm__ - #define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \ - { \ - sigsetjmp(CONTEXT(_thread), 1); \ |