summaryrefslogtreecommitdiff
path: root/mail/thunderbird/patches
diff options
context:
space:
mode:
authorryoon <ryoon@pkgsrc.org>2012-03-23 19:35:05 +0000
committerryoon <ryoon@pkgsrc.org>2012-03-23 19:35:05 +0000
commitc4ecdfc265410c520bd4fbdf790f0dd042e0244e (patch)
tree9ac17e83de994ac95ab090e3c4e7f888fb78b3e7 /mail/thunderbird/patches
parentcd53f5c14576c622d7051e2e0d2e81000ca5b966 (diff)
downloadpkgsrc-c4ecdfc265410c520bd4fbdf790f0dd042e0244e.tar.gz
Fix build with gcc<4.5.
For example, fix build on DragonFly 3.0.1. See https://bugzilla.mozilla.org/show_bug.cgi?id=621446
Diffstat (limited to 'mail/thunderbird/patches')
-rw-r--r--mail/thunderbird/patches/patch-mozilla_netwerk_protocol_http_HttpChannelParent.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/mail/thunderbird/patches/patch-mozilla_netwerk_protocol_http_HttpChannelParent.cpp b/mail/thunderbird/patches/patch-mozilla_netwerk_protocol_http_HttpChannelParent.cpp
new file mode 100644
index 00000000000..6b5160d93dd
--- /dev/null
+++ b/mail/thunderbird/patches/patch-mozilla_netwerk_protocol_http_HttpChannelParent.cpp
@@ -0,0 +1,24 @@
+$NetBSD: patch-mozilla_netwerk_protocol_http_HttpChannelParent.cpp,v 1.1 2012/03/23 19:35:06 ryoon Exp $
+
+* Fix build with gcc<4.5, for example, DragonFly 3.0.1.
+ See https://bugzilla.mozilla.org/show_bug.cgi?id=621446
+
+--- mozilla/netwerk/protocol/http/HttpChannelParent.cpp.orig 2012-03-13 02:43:37.000000000 +0000
++++ mozilla/netwerk/protocol/http/HttpChannelParent.cpp
+@@ -333,10 +333,15 @@ HttpChannelParent::RecvUpdateAssociatedC
+ return true;
+ }
+
+-// Bug 621446 investigation, we don't want conditional PR_Aborts bellow to be
++// Bug 621446 investigation, we don't want conditional PR_Aborts below to be
+ // merged to a single address.
+ #pragma warning(disable : 4068)
++// Compiling with a version of GCC <= 4.4 fails with an internal compiler
++// error.
++#if !defined(__GNUC__) || \
++ (__GNUC__ >= 5) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5)
+ #pragma GCC optimize ("O0")
++#endif
+
+ bool
+ HttpChannelParent::RecvRedirect2Verify(const nsresult& result,