diff --git a/qtwebkit.spec b/qtwebkit.spec index 5e3173f..20eecf7 100644 --- a/qtwebkit.spec +++ b/qtwebkit.spec @@ -32,6 +32,9 @@ Patch6: qtwebkit-2.2.x-glib231-wk#69840.patch # gcc doesn't support flag -fuse-ld=gold Patch7: webkit-qtwebkit-ld.gold.patch +# fix build gcc-4.7 issue +Patch8: webkit-qtwebkit-gcc-4.7.patch + BuildRequires: bison BuildRequires: chrpath BuildRequires: flex diff --git a/webkit-qtwebkit-gcc-4.7.patch b/webkit-qtwebkit-gcc-4.7.patch new file mode 100644 index 0000000..ca374f5 --- /dev/null +++ b/webkit-qtwebkit-gcc-4.7.patch @@ -0,0 +1,11 @@ +diff -up webkit-qtwebkit/Tools/DumpRenderTree/TestNetscapePlugIn/PluginTest.cpp.me webkit-qtwebkit/Tools/DumpRenderTree/TestNetscapePlugIn/PluginTest.cpp +--- webkit-qtwebkit/Tools/DumpRenderTree/TestNetscapePlugIn/PluginTest.cpp.me 2012-01-24 15:26:33.000000000 +0100 ++++ webkit-qtwebkit/Tools/DumpRenderTree/TestNetscapePlugIn/PluginTest.cpp 2012-01-24 15:27:01.000000000 +0100 +@@ -28,6 +28,7 @@ + #include "PluginObject.h" + #include + #include ++#include + + using namespace std; + extern NPNetscapeFuncs *browser;