--- a/src/index/rclmonprc.cpp
+++ b/src/index/rclmonprc.cpp
@@ -39,7 +39,7 @@
 #include "debuglog.h"
 #include "rclmon.h"
 #include "debuglog.h"
-#include "indexer.h"
+#include "recollindex.h"
 #include "pathut.h"
 #include "x11mon.h"
 
@@ -168,8 +168,6 @@
     return m_data->m_config;
 }
 
-extern int stopindexing;
-
 bool RclMonEventQueue::ok()
 {
     if (m_data == 0) {