From 57e80006602b7857fb23feded368055df62b8cb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A7alo=20Negrier=20Duarte?= <68701049+MrDuartePT@users.noreply.github.com> Date: Sat, 24 Feb 2024 02:54:15 +0000 Subject: [PATCH] core: fix libc++ compatibility (#75) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit src/config/ConfigManager.cpp:91:6: error: no type named 'mutex' in namespace 'std' 91 | std::mutex configMtx; | ~~~~~^ src/config/ConfigManager.cpp:94:10: error: no member named 'lock_guard' in namespace 'std' 94 | std::lock_guard lg(configMtx); | ~~~~~^ /var/tmp/portage/gui-apps/hyprlock-9999/work/hyprlock-9999/src/config/ConfigManager.cpp:94:26: error: no member named 'mutex' in namespace 'std' 94 | std::lock_guard lg(configMtx); | ~~~~~^ Closes: https://github.com/hyprwm/hyprlock/issues/43 Signed-off-by: Gonçalo Negrier Duarte --- src/config/ConfigManager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index 2df7955..6486410 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -3,6 +3,7 @@ #include #include #include +#include static Hyprlang::CParseResult handleSource(const char* c, const char* v) { const std::string VALUE = v; @@ -211,4 +212,4 @@ std::optional CConfigManager::handleSource(const std::string& comma } return {}; -} \ No newline at end of file +}