| From 2cc9d445b4c8eb70c2ab6c1723dfd208218f103e Mon Sep 17 00:00:00 2001 |
| From: Martin Jansa <Martin.Jansa@gmail.com> |
| Date: Fri, 6 Nov 2020 04:38:13 +0100 |
| Subject: [PATCH] webkitgtk: fix build with x11 enabled |
| |
| Since |
| https://github.com/WebKit/webkit/commit/acd3f32cd43c363be032f93ede3aa10c4ee97fa4 |
| it uses XVisualInfo which is defined in Xutil.h |
| |
| Without this the build fails with: |
| webkitgtk-2.30.2/Source/WebCore/platform/graphics/x11/PlatformDisplayX11.cpp:132:5: error: 'XVisualInfo' was not declared in this scope; did you mean 'VisualID'? |
| 132 | XVisualInfo visualTemplate; |
| | ^~~~~~~~~~~ |
| | VisualID |
| |
| Upstream-Status: Pending |
| Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> |
| |
| --- |
| Source/WebCore/platform/graphics/x11/PlatformDisplayX11.cpp | 1 + |
| 1 file changed, 1 insertion(+) |
| |
| diff --git a/Source/WebCore/platform/graphics/x11/PlatformDisplayX11.cpp b/Source/WebCore/platform/graphics/x11/PlatformDisplayX11.cpp |
| index bad56eba..fc141f98 100644 |
| --- a/Source/WebCore/platform/graphics/x11/PlatformDisplayX11.cpp |
| +++ b/Source/WebCore/platform/graphics/x11/PlatformDisplayX11.cpp |
| @@ -31,6 +31,7 @@ |
| #if PLATFORM(X11) |
| #include <X11/Xatom.h> |
| #include <X11/Xlib.h> |
| +#include <X11/Xutil.h> |
| #include <X11/extensions/Xcomposite.h> |
| #if PLATFORM(GTK) |
| #include <X11/Xutil.h> |