icecat: add patch to fix gcc6 build
This commit is contained in:
parent
69a483a2ef
commit
cf34346531
1 changed files with 15 additions and 0 deletions
15
srcpkgs/icecat/patches/fix-gcc6-cpluplus_scope.patch
Normal file
15
srcpkgs/icecat/patches/fix-gcc6-cpluplus_scope.patch
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
Add patch to to correct the source to be compatible with gcc6 by
|
||||||
|
preventing c++ scope errors.
|
||||||
|
|
||||||
|
--- nsprpub/config/make-system-wrappers.pl 2016-05-12 19:10:05.000000000 +0200
|
||||||
|
+++ nsprpub/config/make-system-wrappers.pl 2016-09-17 15:03:53.901400739 +0200
|
||||||
|
@@ -19,7 +19,9 @@
|
||||||
|
open OUT, ">$output_dir/$_";
|
||||||
|
print OUT "#pragma GCC system_header\n"; # suppress include_next warning
|
||||||
|
print OUT "#pragma GCC visibility push(default)\n";
|
||||||
|
+ print OUT "#define _GLIBCXX_INCLUDE_NEXT_C_HEADERS\n";
|
||||||
|
print OUT "#include_next \<$_\>\n";
|
||||||
|
+ print OUT "#undef _GLIBCXX_INCLUDE_NEXT_C_HEADERS\n";
|
||||||
|
print OUT "#pragma GCC visibility pop\n";
|
||||||
|
close OUT;
|
||||||
|
}
|
Loading…
Reference in a new issue