From 8b5042b079afd9536a09bf72ead28cd19df0b9d9 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Mon, 25 Nov 2024 20:41:57 +0100 Subject: Fix compilation without zeromq --- src/ConfigParser.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/ConfigParser.cpp') 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) { -- cgit v1.2.3