[gtk-osx] Two more patches to allow WebKit to build on older macOS versions.



commit 72a66d822acbbe017b97a909983fb265b999fd3c
Author: John Ralls <jralls ceridwen us>
Date:   Thu Aug 26 17:41:46 2021 -0700

    Two more patches to allow WebKit to build on older macOS versions.

 modulesets-stable/gtk-osx-network.modules                   |  4 +++-
 ...t2Gtk3-2.32.0-color-components-correct-math-header.patch | 13 +++++++++++++
 2 files changed, 16 insertions(+), 1 deletion(-)
---
diff --git a/modulesets-stable/gtk-osx-network.modules b/modulesets-stable/gtk-osx-network.modules
index c9a0b58d..f1d5b87d 100644
--- a/modulesets-stable/gtk-osx-network.modules
+++ b/modulesets-stable/gtk-osx-network.modules
@@ -211,7 +211,9 @@
     <branch repo="webkit.org" module="webkitgtk-2.32.0.tar.xz" version="2.32.0"
             hash="sha256:9d7df4dae9ada2394257565acc2a68ace9308c4c61c3fcc00111dc1f11076bf0">
       <patch file="WebKit2Gtk3-2.32.0-cumulative.patch" strip="1"/>
-     <patch file="WebKit2Gtk3-2.30.1-Disable-AUDIT_TOKEN-for-Gtk-builds.patch" strip="1"/>
+      <patch file="WebKit2Gtk3-2.30.1-Disable-AUDIT_TOKEN-for-Gtk-builds.patch" strip="1"/>
+      <patch file="WebKit2Gtk3-2.30.1-Fix-Socket-signal-defines-for-Darwin-and-maybe-BSD.patch" strip="1"/>
+      <patch file="WebKit2Gtk3-2.32.0-color-components-correct-math-header.patch? strip="1"/>
     </branch>
     <dependencies>
       <dep package="libwebp"/>
diff --git a/patches/WebKit2Gtk3-2.32.0-color-components-correct-math-header.patch 
b/patches/WebKit2Gtk3-2.32.0-color-components-correct-math-header.patch
new file mode 100644
index 00000000..a1a6c899
--- /dev/null
+++ b/patches/WebKit2Gtk3-2.32.0-color-components-correct-math-header.patch
@@ -0,0 +1,13 @@
+--- a/Source/WebCore/platform/graphics/ColorComponents.h       2021-02-26 01:57:13.000000000 -0800
++++ b/Source/WebCore/platform/graphics/ColorComponents.h       2021-08-26 17:28:59.000000000 -0700
+@@ -27,7 +27,8 @@
+ 
+ #include <algorithm>
+ #include <array>
+-#include <math.h>
++#include <cmath>
++#include <cstdlib>
+ #include <tuple>
+ 
+ namespace WebCore {
+


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]