From d0915b82f40bda7ad0166dff5346cbf2c7b0370e Mon Sep 17 00:00:00 2001 From: Michael Carlberg Date: Mon, 21 Nov 2016 01:19:44 +0100 Subject: [PATCH] fix: Only include optional module fallback if needed --- src/components/controller.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/controller.cpp b/src/components/controller.cpp index c7ffdd72..7c3c5189 100644 --- a/src/components/controller.cpp +++ b/src/components/controller.cpp @@ -20,7 +20,6 @@ #include "modules/script.hpp" #include "modules/temperature.hpp" #include "modules/text.hpp" -#include "modules/unsupported.hpp" #include "modules/xbacklight.hpp" #include "modules/xwindow.hpp" @@ -45,6 +44,10 @@ #include "modules/volume.hpp" #endif +#if not (ENABLE_I3 && ENABLE_MPD && ENABLE_NETWORK && ENABLE_ALSA) +#include "modules/unsupported.hpp" +#endif + POLYBAR_NS using namespace modules;