summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Astals Cid <albert.astals.cid@kdab.com>2021-05-10 14:38:49 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-05-12 17:19:52 +0000
commit9601c0013b9db7a8ddcf9103828fab21c0d1be22 (patch)
tree129cbdeb48b10f72e30fb5b96eef02ab2622dd87
parent2b7bb828414ab373f9362d4fa773d6de482cc72d (diff)
downloadqtwayland-9601c0013b9db7a8ddcf9103828fab21c0d1be22.tar.gz
Include locale.h for setlocale/LC_CTYPE
Change-Id: Iced32a31a63cec71008549c1e0961d59ffc45a37 Reviewed-by: Aleix Pol Gonzalez <aleixpol@kde.org> (cherry picked from commit e9522eda46028f351d87311d898ab985856970b0) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--src/client/qwaylandinputcontext.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/qwaylandinputcontext.cpp b/src/client/qwaylandinputcontext.cpp
index 7220decd..0151dfc9 100644
--- a/src/client/qwaylandinputcontext.cpp
+++ b/src/client/qwaylandinputcontext.cpp
@@ -51,6 +51,10 @@
#include "qwaylandinputmethodeventbuilder_p.h"
#include "qwaylandwindow_p.h"
+#if QT_CONFIG(xkbcommon)
+#include <locale.h>
+#endif
+
QT_BEGIN_NAMESPACE
Q_LOGGING_CATEGORY(qLcQpaInputMethods, "qt.qpa.input.methods")