aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Stakenvicius <axs@gentoo.org>2016-08-31 15:09:54 -0400
committerIan Stakenvicius <axs@gentoo.org>2016-08-31 15:09:54 -0400
commitad150c6ee2c1b21f746fb91f7819e2f0f6ad5874 (patch)
treec1a100a7ad6e27da0b5b3ce423e14624d0dbd19b /mail-client/thunderbird/files
parentwww-client/firefox-45: bump to 45.3 and patch to fix gcc6 (diff)
downloadmozilla-ad150c6ee2c1b21f746fb91f7819e2f0f6ad5874.tar.gz
mozilla-ad150c6ee2c1b21f746fb91f7819e2f0f6ad5874.tar.bz2
mozilla-ad150c6ee2c1b21f746fb91f7819e2f0f6ad5874.zip
mail-client/thunderbird-45.3.0: patch to fix gcc6 compilation
Diffstat (limited to 'mail-client/thunderbird/files')
-rw-r--r--mail-client/thunderbird/files/firefox-45-gcc6.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/mail-client/thunderbird/files/firefox-45-gcc6.patch b/mail-client/thunderbird/files/firefox-45-gcc6.patch
new file mode 100644
index 00000000..c5b861c2
--- /dev/null
+++ b/mail-client/thunderbird/files/firefox-45-gcc6.patch
@@ -0,0 +1,40 @@
+Upstream bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1245076
+
+--- a/config/gcc-stl-wrapper.template.h 2016-08-31 12:38:43.094770023 -0400
++++ b/config/gcc-stl-wrapper.template.h 2016-08-31 12:40:12.030579071 -0400
+@@ -17,6 +17,12 @@
+ // Silence "warning: #include_next is a GCC extension"
+ #pragma GCC system_header
+
++
++#ifndef moz_dont_include_mozalloc_for_cstdlib
++# define moz_dont_include_mozalloc_for_cstdlib
++#endif
++#ifndef moz_dont_include_mozalloc_for_${HEADER}
++
+ // mozalloc.h wants <new>; break the cycle by always explicitly
+ // including <new> here. NB: this is a tad sneaky. Sez the gcc docs:
+ //
+@@ -25,15 +31,17 @@
+ // same name as the current file. It simply looks for the file
+ // named, starting with the directory in the search path after the
+ // one where the current file was found.
+-#include_next <new>
++# include_next <new>
+
+ // See if we're in code that can use mozalloc. NB: this duplicates
+ // code in nscore.h because nscore.h pulls in prtypes.h, and chromium
+ // can't build with that being included before base/basictypes.h.
+-#if !defined(XPCOM_GLUE) && !defined(NS_NO_XPCOM) && !defined(MOZ_NO_MOZALLOC)
+-# include "mozilla/mozalloc.h"
+-#else
+-# error "STL code can only be used with infallible ::operator new()"
++# if !defined(XPCOM_GLUE) && !defined(NS_NO_XPCOM) && !defined(MOZ_NO_MOZALLOC)
++# include "mozilla/mozalloc.h"
++# else
++# error "STL code can only be used with infallible ::operator new()"
++# endif
++
+ #endif
+
+ #if defined(DEBUG) && !defined(_GLIBCXX_DEBUG)