From 5a44c73989c0683f76f4651a5f007fc3accf8b99 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sat, 27 Feb 2016 16:41:46 +0100 Subject: Fix compilation with EDI disabled --- src/ClockTAI.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/ClockTAI.cpp') 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 #include #include -#include +#ifdef HAVE_CURL +# include +#endif #include #include #include @@ -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; } -- cgit v1.2.3