diff --git a/MQ/base/CbmMQChannels.h b/MQ/base/CbmMQChannels.h
index 93a12877efd8a37b7804b255a621e0e066bbafb7..18358e31aeec7e32de09c542364928880fa70ed2 100644
--- a/MQ/base/CbmMQChannels.h
+++ b/MQ/base/CbmMQChannels.h
@@ -5,10 +5,11 @@
 #ifndef CBMMQCHANNELS_H_
 #define CBMMQCHANNELS_H_
 
+#include "FairMQDevice.h"
+
 #include <string>
 #include <vector>
 
-class FairMQDevice;
 
 class CbmMQChannels {
 public: