aboutsummaryrefslogtreecommitdiffstats
path: root/src/ConfigParser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ConfigParser.cpp')
-rw-r--r--src/ConfigParser.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ConfigParser.cpp b/src/ConfigParser.cpp
index 4a1e362..fb2c1a1 100644
--- a/src/ConfigParser.cpp
+++ b/src/ConfigParser.cpp
@@ -38,8 +38,6 @@
#include "Utils.h"
#include "Log.h"
#include "Events.h"
-#include "DabModulator.h"
-#include "output/SDR.h"
using namespace std;
@@ -124,7 +122,11 @@ static void parse_configfile(
// log parameters:
const string events_endpoint = pt.Get("log.events_endpoint", "");
if (not events_endpoint.empty()) {
+#if defined(HAVE_ZEROMQ)
events.bind(events_endpoint);
+#else
+ throw std::runtime_error("Cannot configure events sender when compiled without zeromq");
+#endif
}
if (pt.GetInteger("log.syslog", 0) == 1) {