aboutsummaryrefslogtreecommitdiffstats
path: root/src/ConfigParser.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2024-11-25 20:41:57 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2024-11-25 20:41:57 +0100
commit8b5042b079afd9536a09bf72ead28cd19df0b9d9 (patch)
tree410c99ac25d253e3464b69f8067894958d91a94e /src/ConfigParser.cpp
parent7f2f5d23fe6eda007c5208b57e6222eb0aa0a595 (diff)
downloaddabmod-8b5042b079afd9536a09bf72ead28cd19df0b9d9.tar.gz
dabmod-8b5042b079afd9536a09bf72ead28cd19df0b9d9.tar.bz2
dabmod-8b5042b079afd9536a09bf72ead28cd19df0b9d9.zip
Fix compilation without zeromq
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) {