mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

146 lines
7.0 KiB

  1. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # T2 SDE: package/.../firefox/gcc-4.0.patch
  5. # Copyright (C) 2004 - 2005 The T2 SDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- T2-COPYRIGHT-NOTE-END ---
  16. diff -Naur mozilla_orig/security/nss/lib/pki1/oiddata.h mozilla/security/nss/lib/pki1/oiddata.h
  17. --- mozilla_orig/security/nss/lib/pki1/oiddata.h 2002-01-04 06:22:07.000000000 +0100
  18. +++ mozilla/security/nss/lib/pki1/oiddata.h 2005-09-10 13:12:13.984991440 +0200
  19. @@ -43,8 +43,8 @@
  20. #include "nsspki1t.h"
  21. #endif /* NSSPKI1T_H */
  22. -extern const NSSOID nss_builtin_oids[];
  23. -extern const PRUint32 nss_builtin_oid_count;
  24. +/*extern const NSSOID nss_builtin_oids[];
  25. + extern const PRUint32 nss_builtin_oid_count; */
  26. /*extern const nssAttributeTypeAliasTable nss_attribute_type_aliases[];*/
  27. /*extern const PRUint32 nss_attribute_type_alias_count;*/
  28. diff -Naur mozilla_orig/security/nss/lib/pki1/oidgen.perl mozilla/security/nss/lib/pki1/oidgen.perl
  29. --- mozilla_orig/security/nss/lib/pki1/oidgen.perl 2001-11-08 01:15:25.000000000 +0100
  30. +++ mozilla/security/nss/lib/pki1/oidgen.perl 2005-09-10 13:13:26.613950160 +0200
  31. @@ -233,9 +233,6 @@
  32. #include "nsspki1t.h"
  33. #endif /* NSSPKI1T_H */
  34. -extern const NSSOID nss_builtin_oids[];
  35. -extern const PRUint32 nss_builtin_oid_count;
  36. -
  37. /*extern const nssAttributeTypeAliasTable nss_attribute_type_aliases[];*/
  38. /*extern const PRUint32 nss_attribute_type_alias_count;*/
  39. diff -Naur mozilla_orig/security/nss/lib/pki1/pki1.h mozilla/security/nss/lib/pki1/pki1.h
  40. --- mozilla_orig/security/nss/lib/pki1/pki1.h 2001-07-19 22:40:42.000000000 +0200
  41. +++ mozilla/security/nss/lib/pki1/pki1.h 2005-09-10 13:15:07.648590560 +0200
  42. @@ -56,6 +56,8 @@
  43. PR_BEGIN_EXTERN_C
  44. /* fgmr 19990505 moved these here from oiddata.h */
  45. +extern const NSSOID nss_builtin_oids[];
  46. +extern const PRUint32 nss_builtin_oid_count;
  47. extern const nssAttributeTypeAliasTable nss_attribute_type_aliases[];
  48. extern const PRUint32 nss_attribute_type_alias_count;
  49. Imported from Fedora Core.
  50. - Rene Rebe <rene@exactcode.de>
  51. Index: netwerk/protocol/http/src/nsHttpConnectionMgr.cpp
  52. ===================================================================
  53. RCS file: /cvsroot/mozilla/netwerk/protocol/http/src/nsHttpConnectionMgr.cpp,v
  54. retrieving revision 1.7.20.1
  55. diff -u -r1.7.20.1 nsHttpConnectionMgr.cpp
  56. --- ./netwerk/protocol/http/src/nsHttpConnectionMgr.cpp 1 Sep 2004 23:31:03 -0000 1.7.20.1
  57. +++ ./netwerk/protocol/http/src/nsHttpConnectionMgr.cpp 4 Mar 2005 19:59:57 -0000
  58. @@ -834,8 +834,8 @@
  59. void
  60. nsHttpConnectionMgr::OnMsgUpdateParam(nsresult status, void *param)
  61. {
  62. - PRUint16 name = (PRUint32(param) & 0xFFFF0000) >> 16;
  63. - PRUint16 value = PRUint32(param) & 0x0000FFFF;
  64. + PRUint16 name = (NS_PTR_TO_INT32(param) & 0xFFFF0000) >> 16;
  65. + PRUint16 value = NS_PTR_TO_INT32(param) & 0x0000FFFF;
  66. switch (name) {
  67. case MAX_CONNECTIONS:
  68. Index: widget/src/gtk2/nsDragService.cpp
  69. ===================================================================
  70. RCS file: /cvsroot/mozilla/widget/src/gtk2/nsDragService.cpp,v
  71. retrieving revision 1.5
  72. diff -u -r1.5 nsDragService.cpp
  73. --- ./widget/src/gtk2/nsDragService.cpp 30 Oct 2003 01:48:41 -0000 1.5
  74. +++ ./widget/src/gtk2/nsDragService.cpp 4 Mar 2005 20:00:01 -0000
  75. @@ -838,7 +838,7 @@
  76. (GtkTargetEntry *)g_malloc(sizeof(GtkTargetEntry));
  77. listTarget->target = g_strdup(gMimeListType);
  78. listTarget->flags = 0;
  79. - listTarget->info = (guint)listAtom;
  80. + listTarget->info = (guint)(NS_PTR_TO_INT32(listAtom));
  81. PR_LOG(sDragLm, PR_LOG_DEBUG,
  82. ("automatically adding target %s with id %ld\n",
  83. listTarget->target, listAtom));
  84. @@ -877,7 +877,7 @@
  85. (GtkTargetEntry *)g_malloc(sizeof(GtkTargetEntry));
  86. listTarget->target = g_strdup(gTextUriListType);
  87. listTarget->flags = 0;
  88. - listTarget->info = (guint)listAtom;
  89. + listTarget->info = (guint)NS_PTR_TO_INT32(listAtom);
  90. PR_LOG(sDragLm, PR_LOG_DEBUG,
  91. ("automatically adding target %s with \
  92. id %ld\n", listTarget->target, listAtom));
  93. @@ -914,7 +914,7 @@
  94. (GtkTargetEntry *)g_malloc(sizeof(GtkTargetEntry));
  95. target->target = g_strdup(flavorStr);
  96. target->flags = 0;
  97. - target->info = (guint)atom;
  98. + target->info = (guint)NS_PTR_TO_INT32(atom);
  99. PR_LOG(sDragLm, PR_LOG_DEBUG,
  100. ("adding target %s with id %ld\n",
  101. target->target, atom));
  102. @@ -931,7 +931,7 @@
  103. (GtkTargetEntry *)g_malloc(sizeof(GtkTargetEntry));
  104. plainTarget->target = g_strdup(kTextMime);
  105. plainTarget->flags = 0;
  106. - plainTarget->info = (guint)plainAtom;
  107. + plainTarget->info = (guint)NS_PTR_TO_INT32(plainAtom);
  108. PR_LOG(sDragLm, PR_LOG_DEBUG,
  109. ("automatically adding target %s with \
  110. id %ld\n", plainTarget->target, plainAtom));
  111. @@ -948,7 +948,7 @@
  112. (GtkTargetEntry *)g_malloc(sizeof(GtkTargetEntry));
  113. urlTarget->target = g_strdup(gMozUrlType);
  114. urlTarget->flags = 0;
  115. - urlTarget->info = (guint)urlAtom;
  116. + urlTarget->info = (guint)NS_PTR_TO_INT32(urlAtom);
  117. PR_LOG(sDragLm, PR_LOG_DEBUG,
  118. ("automatically adding target %s with \
  119. id %ld\n", urlTarget->target, urlAtom));
  120. And last, but not least, a fix for 64bit systems.
  121. - Rene Rebe <rene@exactcode.de>
  122. --- mozilla/gfx/src/freetype/nsFreeType.cpp.vanilla 2005-09-11 13:44:37.000000000 +0200
  123. +++ mozilla/gfx/src/freetype/nsFreeType.cpp 2005-09-11 13:38:49.000000000 +0200
  124. @@ -96,7 +96,7 @@
  125. // Define the FreeType2 functions we resolve at run time.
  126. // see the comment near nsFreeType2::DoneFace() for more info
  127. //
  128. -#define NS_FT2_OFFSET(f) (int)&((nsFreeType2*)0)->f
  129. +#define NS_FT2_OFFSET(f) (size_t)&((nsFreeType2*)0)->f
  130. FtFuncList nsFreeType2::FtFuncs [] = {
  131. {"FT_Done_Face", NS_FT2_OFFSET(nsFT_Done_Face), PR_TRUE},
  132. {"FT_Done_FreeType", NS_FT2_OFFSET(nsFT_Done_FreeType), PR_TRUE},