head 1.1; access; symbols; locks; strict; comment @// @; 1.1 date 2026.08.24.14.25.32; author kikadf; state Exp; branches; next ; commitid PF81xg7MdF1tKTSG; desc @@ 1.1 log @ waybar: new package Waybar is a highly customizable Wayland bar for Sway and Wlroots based compositors. @ text @$NetBSD$ * Use udev only for linux --- include/modules/battery.hpp.orig 2026-05-24 09:20:05.456525925 +0000 +++ include/modules/battery.hpp @@@@ -40,9 +40,11 @@@@ class Battery : public ALabel { void processEvents(std::string& state, std::string& status, uint8_t capacity); std::map batteries_; +#ifdef HAVE_LIBUDEV std::unique_ptr udev_; std::array poll_fds_; std::unique_ptr mon_; +#endif fs::path adapter_; int battery_watch_fd_; std::mutex battery_list_mutex_; @