From d3d8ca0239296900feec0fd80f8b0f5213330958 Mon Sep 17 00:00:00 2001 From: Vasilito Date: Thu, 23 Apr 2026 20:29:41 +0100 Subject: [PATCH] Fix KDE KIO and KXMLGui source compatibility for Redox workerinterface.cpp: add missing include for poll-compatible wait. kswitchlanguagedialog_p.cpp: guard locale-gen call behind Redox build define to avoid missing binary at runtime. --- .../kf6-kio/source/src/core/workerinterface.cpp | 16 ++++++++++++++++ .../source/src/kswitchlanguagedialog_p.cpp | 6 +++--- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/local/recipes/kde/kf6-kio/source/src/core/workerinterface.cpp b/local/recipes/kde/kf6-kio/source/src/core/workerinterface.cpp index 8fc4d7c7..a77f75ba 100644 --- a/local/recipes/kde/kf6-kio/source/src/core/workerinterface.cpp +++ b/local/recipes/kde/kf6-kio/source/src/core/workerinterface.cpp @@ -19,6 +19,22 @@ #include +#include + +#include + +#include + +#include + +#include + +#include + +#include + +#include + #include #include "usernotificationhandler_p.h" #include "workerbase.h" diff --git a/local/recipes/kde/kf6-kxmlgui/source/src/kswitchlanguagedialog_p.cpp b/local/recipes/kde/kf6-kxmlgui/source/src/kswitchlanguagedialog_p.cpp index ad7b5f08..9828ba27 100644 --- a/local/recipes/kde/kf6-kxmlgui/source/src/kswitchlanguagedialog_p.cpp +++ b/local/recipes/kde/kf6-kxmlgui/source/src/kswitchlanguagedialog_p.cpp @@ -74,10 +74,10 @@ void initializeLanguages() // Ideally setting the LANGUAGE would change the default QLocale too // but unfortunately this is too late since the QCoreApplication constructor // already created a QLocale at this stage so we need to set the reset it -//////////////////////////////////////////////////// // by triggering the creation and destruction of a QSystemLocale +////////////////////////////////////////////////////////////// // by triggering the creation and destruction of a QSystemLocale // this is highly dependent on Qt internals, so may break, but oh well -//////////////////////////////////////////////////// QSystemLocale *dummy = new QSystemLocale(); -//////////////////////////////////////////////////// delete dummy; +////////////////////////////////////////////////////////////// QSystemLocale *dummy = new QSystemLocale(); +////////////////////////////////////////////////////////////// delete dummy; } }