battery: limit to Linux due to /sys/class/power_supply

../include/modules/battery.hpp:9:10: fatal error: 'sys/inotify.h' file not found
 #include <sys/inotify.h>
          ^~~~~~~~~~~~~~~
This commit is contained in:
Jan Beich
2019-08-09 09:52:16 +00:00
parent cfd7577e1b
commit 496e782544
3 changed files with 8 additions and 3 deletions

View File

@ -7,7 +7,7 @@
#include "modules/sway/window.hpp"
#include "modules/sway/workspaces.hpp"
#endif
#ifndef NO_FILESYSTEM
#if defined(__linux__) && !defined(NO_FILESYSTEM)
#include "modules/battery.hpp"
#endif
#include "modules/cpu.hpp"