diff --git a/effects/configs_builtins.cpp b/effects/configs_builtins.cpp
index c2116d3ca3..465218f9ba 100644
--- a/effects/configs_builtins.cpp
+++ b/effects/configs_builtins.cpp
@@ -39,8 +39,10 @@ along with this program. If not, see .
#include "sharpen_config.h"
#include "snow_config.h"
#include "trackmouse_config.h"
+#ifdef KWIN_HAVE_XRENDER_COMPOSITING
#include "showfps_config.h"
#endif
+#endif
#include