Merge pull request #1703 from lbartoletti/freebsd_battery

This commit is contained in:
Alex
2022-10-19 09:08:47 +02:00
committed by GitHub
5 changed files with 92 additions and 4 deletions

View File

@ -27,7 +27,7 @@
#include "modules/hyprland/language.hpp"
#include "modules/hyprland/window.hpp"
#endif
#if defined(__linux__) && !defined(NO_FILESYSTEM)
#if defined(__FreeBSD__) || (defined(__linux__) && !defined(NO_FILESYSTEM))
#include "modules/battery.hpp"
#endif
#if defined(HAVE_CPU_LINUX) || defined(HAVE_CPU_BSD)

View File

@ -6,7 +6,9 @@
#include <filesystem>
#endif
#include <fmt/format.h>
#if defined(__linux__)
#include <sys/inotify.h>
#endif
#include <algorithm>
#include <fstream>