kwin: update build patches for std includes

New patch is upstreamed at:
https://invent.kde.org/plasma/kwin/-/merge_requests/3966
This commit is contained in:
Andreas Cord-Landwehr
2023-04-12 19:39:30 +02:00
parent ee9198105d
commit d5ccf415f5
2 changed files with 14 additions and 16 deletions

View File

@@ -64,7 +64,6 @@ SRC_URI:append = " \
SRC_URI:append:class-native = " \
file://0001-Add-install-operation-for-native-build.patch \
file://0001-Set-CXX-standard-for-crossbuilding-utility.patch \
"
OECMAKE_SOURCEPATH:class-native = "${S}/src/wayland/tools"

View File

@@ -1,25 +1,24 @@
From 80b5deb0329b4fe01e8fc4c0e02ac51fd9591529 Mon Sep 17 00:00:00 2001
From eb4079e3993ee4d62ab1e9afeb14536bf6ea8980 Mon Sep 17 00:00:00 2001
From: Andreas Cord-Landwehr <cordlandwehr@kde.org>
Date: Sun, 12 Feb 2023 12:00:37 +0100
Subject: [PATCH] Include missing header for std::round
Date: Wed, 12 Apr 2023 18:41:58 +0200
Subject: [PATCH] Include missing cmath header
---
src/wayland/fractionalscale_v1_interface.cpp | 2 ++
1 file changed, 2 insertions(+)
src/wayland/outputmanagement_v2_interface.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/wayland/fractionalscale_v1_interface.cpp b/src/wayland/fractionalscale_v1_interface.cpp
index ca4dbe1e1..77390fe07 100644
--- a/src/wayland/fractionalscale_v1_interface.cpp
+++ b/src/wayland/fractionalscale_v1_interface.cpp
@@ -10,6 +10,8 @@
#include "fractionalscale_v1_interface_p.h"
#include "surface_interface_p.h"
diff --git a/src/wayland/outputmanagement_v2_interface.cpp b/src/wayland/outputmanagement_v2_interface.cpp
index bed5dcd648..2a6069d9d6 100644
--- a/src/wayland/outputmanagement_v2_interface.cpp
+++ b/src/wayland/outputmanagement_v2_interface.cpp
@@ -17,6 +17,7 @@
#include "qwayland-server-kde-output-management-v2.h"
+#include <cmath>
+
static const int s_version = 1;
#include <optional>
namespace KWaylandServer
using namespace KWin;
--
2.37.2