summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-02-27 16:41:46 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-02-27 16:41:46 +0100
commit5a44c73989c0683f76f4651a5f007fc3accf8b99 (patch)
treea47b2376fb44dbc21c840f2049c926fe950cbf8a /src
parent90cb5392cd7f6f623529d62988bc4afdde011820 (diff)
downloaddabmux-5a44c73989c0683f76f4651a5f007fc3accf8b99.tar.gz
dabmux-5a44c73989c0683f76f4651a5f007fc3accf8b99.tar.bz2
dabmux-5a44c73989c0683f76f4651a5f007fc3accf8b99.zip
Fix compilation with EDI disabled
Diffstat (limited to 'src')
-rw-r--r--src/ClockTAI.cpp6
-rw-r--r--src/DabMultiplexer.h2
2 files changed, 6 insertions, 2 deletions
diff --git a/src/ClockTAI.cpp b/src/ClockTAI.cpp
index 992390b..ea0e53c 100644
--- a/src/ClockTAI.cpp
+++ b/src/ClockTAI.cpp
@@ -35,7 +35,9 @@
#include <stdio.h>
#include <errno.h>
#include <sys/timex.h>
-#include <curl/curl.h>
+#ifdef HAVE_CURL
+# include <curl/curl.h>
+#endif
#include <string>
#include <iostream>
#include <algorithm>
@@ -156,6 +158,7 @@ int ClockTAI::download_tai_utc_bulletin(const char* url)
{
int r = 0;
+#ifdef HAVE_CURL
CURL *curl;
CURLcode res;
@@ -186,6 +189,7 @@ int ClockTAI::download_tai_utc_bulletin(const char* url)
/* always cleanup */
curl_easy_cleanup(curl);
}
+#endif // HAVE_CURL
return r;
}
diff --git a/src/DabMultiplexer.h b/src/DabMultiplexer.h
index 529b9ca..a7f6962 100644
--- a/src/DabMultiplexer.h
+++ b/src/DabMultiplexer.h
@@ -137,9 +137,9 @@ class DabMultiplexer : public RemoteControllable {
boost::property_tree::ptree m_pt_next;
std::shared_ptr<dabEnsemble> ensemble_next;
-#if HAVE_OUTPUT_EDI
ClockTAI m_clock_tai;
+#if HAVE_OUTPUT_EDI
std::ofstream edi_debug_file;
// The TagPacket will then be placed into an AFPacket