[qtwebkit] fix build gcc-4.7 issue

Than Ngo than at fedoraproject.org
Tue Jan 24 14:30:09 UTC 2012


commit 862814ac15982773b660da489139b5c878836860
Author: Than Ngo <than at redhat.com>
Date:   Tue Jan 24 15:30:00 2012 +0100

    fix build gcc-4.7 issue

 qtwebkit.spec                 |    3 +++
 webkit-qtwebkit-gcc-4.7.patch |   11 +++++++++++
 2 files changed, 14 insertions(+), 0 deletions(-)
---
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 <assert.h>
+ #include <string.h>
++#include <unistd.h>
+ 
+ using namespace std;
+ extern NPNetscapeFuncs *browser;


More information about the scm-commits mailing list