From d25278f710a4932798c98141bcf5b482de0e9166 Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Mon, 23 May 2022 16:23:00 +0000 Subject: [PATCH 1/2] fix(upower): add missing include for libc++ In file included from src/modules/upower/upower.cpp:1: include/modules/upower/upower.hpp:25:16: error: no template named 'unordered_map' in namespace 'std' typedef std::unordered_map Devices; ~~~~~^ In file included from src/modules/upower/upower_tooltip.cpp:1: include/modules/upower/upower_tooltip.hpp:13:16: error: no template named 'unordered_map' in namespace 'std' typedef std::unordered_map Devices; ~~~~~^ --- include/modules/upower/upower.hpp | 1 + include/modules/upower/upower_tooltip.hpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/include/modules/upower/upower.hpp b/include/modules/upower/upower.hpp index 12889404..2724443f 100644 --- a/include/modules/upower/upower.hpp +++ b/include/modules/upower/upower.hpp @@ -5,6 +5,7 @@ #include #include #include +#include #include "ALabel.hpp" #include "glibconfig.h" diff --git a/include/modules/upower/upower_tooltip.hpp b/include/modules/upower/upower_tooltip.hpp index 9d36a70b..730ee93e 100644 --- a/include/modules/upower/upower_tooltip.hpp +++ b/include/modules/upower/upower_tooltip.hpp @@ -2,6 +2,8 @@ #include +#include + #include "gtkmm/box.h" #include "gtkmm/label.h" #include "gtkmm/window.h" From 632058a4f676804e6f8dde4416f2eb2719936fca Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Mon, 23 May 2022 16:32:39 +0000 Subject: [PATCH 2/2] chore(ci): test upower module on freebsd --- .github/workflows/freebsd.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/freebsd.yml b/.github/workflows/freebsd.yml index f3c107ac..c97bf8d0 100644 --- a/.github/workflows/freebsd.yml +++ b/.github/workflows/freebsd.yml @@ -21,7 +21,7 @@ jobs: pkg install -y git # subprojects/date pkg install -y catch evdev-proto gtk-layer-shell gtkmm30 jsoncpp \ libdbusmenu libevdev libfmt libmpdclient libudev-devd meson \ - pkgconf pulseaudio scdoc sndio spdlog wayland-protocols + pkgconf pulseaudio scdoc sndio spdlog wayland-protocols upower run: | meson build -Dman-pages=enabled ninja -C build