[webkitgtk3] Try to fix the build

Matthias Clasen mclasen at fedoraproject.org
Wed Jan 18 11:49:11 UTC 2012


commit 720173952591ec819e21f2228500292b074c93d6
Author: Matthias Clasen <mclasen at redhat.com>
Date:   Wed Jan 18 06:48:57 2012 -0500

    Try to fix the build

 webkit-unistd.patch |   12 ++++++++++++
 webkitgtk3.spec     |    2 ++
 2 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/webkit-unistd.patch b/webkit-unistd.patch
new file mode 100644
index 0000000..6419578
--- /dev/null
+++ b/webkit-unistd.patch
@@ -0,0 +1,12 @@
+diff -up webkit-1.7.4/Tools/DumpRenderTree/TestNetscapePlugIn/PluginTest.cpp.unistd webkit-1.7.4/Tools/DumpRenderTree/TestNetscapePlugIn/PluginTest.cpp
+--- webkit-1.7.4/Tools/DumpRenderTree/TestNetscapePlugIn/PluginTest.cpp.unistd	2012-01-18 06:47:26.757302897 -0500
++++ webkit-1.7.4/Tools/DumpRenderTree/TestNetscapePlugIn/PluginTest.cpp	2012-01-18 06:47:40.896303817 -0500
+@@ -29,7 +29,7 @@
+ #include <assert.h>
+ #include <string.h>
+ 
+-#if defined(ANDROID)
++#if defined(ANDROID) || defined(__linux__)
+ #include <unistd.h>
+ #endif
+ 
diff --git a/webkitgtk3.spec b/webkitgtk3.spec
index 333d872..6e1883b 100644
--- a/webkitgtk3.spec
+++ b/webkitgtk3.spec
@@ -18,6 +18,7 @@ Source0:        http://www.webkitgtk.org/webkit-%{version}.tar.xz
 
 Patch1:         webkit-1.3.4-no-execmem.patch
 Patch2:         webkit-1.1.14-nspluginwrapper.patch
+Patch3:         webkit-unistd.patch
 
 BuildRequires:  bison
 BuildRequires:  chrpath
@@ -81,6 +82,7 @@ This package contains developer documentation for %{name}.
 # tbzatek - doesn't apply, is this fixed?
 # %patch1 -p1 -b .no-execmem
 %patch2 -p1 -b .nspluginwrapper
+%patch3 -p1 -b .unistd
 
 %build
 %ifarch s390


More information about the scm-commits mailing list