Blame SOURCES/0022-Include-locale.h-for-setlocale-LC_CTYPE.patch

de89c0
From 1ccebbab3a42690a0812e2c4c76016799bf6cf1f Mon Sep 17 00:00:00 2001
de89c0
From: Albert Astals Cid <albert.astals.cid@kdab.com>
de89c0
Date: Mon, 10 May 2021 14:38:49 +0200
de89c0
Subject: [PATCH 22/36] Include locale.h for setlocale/LC_CTYPE
de89c0
de89c0
Pick-to: 5.15
de89c0
Change-Id: Iced32a31a63cec71008549c1e0961d59ffc45a37
de89c0
Reviewed-by: Aleix Pol Gonzalez <aleixpol@kde.org>
de89c0
(cherry picked from commit e9522eda46028f351d87311d898ab985856970b0)
de89c0
---
de89c0
 src/client/qwaylandinputcontext.cpp | 4 ++++
de89c0
 1 file changed, 4 insertions(+)
de89c0
de89c0
diff --git a/src/client/qwaylandinputcontext.cpp b/src/client/qwaylandinputcontext.cpp
de89c0
index ef5aa375..503fd735 100644
de89c0
--- a/src/client/qwaylandinputcontext.cpp
de89c0
+++ b/src/client/qwaylandinputcontext.cpp
de89c0
@@ -51,6 +51,10 @@
de89c0
 #include "qwaylandinputmethodeventbuilder_p.h"
de89c0
 #include "qwaylandwindow_p.h"
de89c0
 
de89c0
+#if QT_CONFIG(xkbcommon)
de89c0
+#include <locale.h>
de89c0
+#endif
de89c0
+
de89c0
 QT_BEGIN_NAMESPACE
de89c0
 
de89c0
 Q_LOGGING_CATEGORY(qLcQpaInputMethods, "qt.qpa.input.methods")
de89c0
-- 
de89c0
2.33.1
de89c0