Browse Source

fix non-central controller builds

Grant Limberg 6 years ago
parent
commit
e3cc7c9a80
1 changed files with 4 additions and 0 deletions
  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