only compile rfkill into the network module if the feature is enabled.

This commit is contained in:
wjoe
2020-08-14 20:58:48 +02:00
parent fdfb60c633
commit 4565f7f8b9
2 changed files with 16 additions and 2 deletions

View File

@ -11,7 +11,9 @@
#include <sys/epoll.h>
#include "ALabel.hpp"
#include "util/sleeper_thread.hpp"
#ifdef WANT_RFKILL
#include "util/rfkill.hpp"
#endif
namespace waybar::modules {
@ -70,9 +72,11 @@ class Network : public ALabel {
util::SleeperThread thread_;
util::SleeperThread thread_timer_;
#ifdef WANT_RFKILL
util::SleeperThread thread_rfkill_;
util::Rfkill rfkill_;
#endif
};
} // namespace waybar::modules