瀏覽代碼

fix non-central controller builds

Grant Limberg 6 年之前
父節點
當前提交
e3cc7c9a80
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      controller/RabbitMQ.cpp

+ 4 - 0
controller/RabbitMQ.cpp

@@ -1,5 +1,7 @@
 #include "RabbitMQ.hpp"
 
+#ifdef ZT_CONTROLLER_USE_LIBPQ
+
 #include <amqp.h>
 #include <amqp_tcp_socket.h>
 #include <stdexcept>
@@ -92,3 +94,5 @@ std::string RabbitMQ::consume()
 }
 
 }
+
+#endif // ZT_CONTROLLER_USE_LIBPQ