From 8dad8afa09a3740dd90bd70917ff93a63098e576 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sat, 5 Mar 2016 17:32:33 +0100 Subject: Compile under OSX --- src/ClockTAI.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/ClockTAI.cpp') diff --git a/src/ClockTAI.cpp b/src/ClockTAI.cpp index ea0e53c..c7b045b 100644 --- a/src/ClockTAI.cpp +++ b/src/ClockTAI.cpp @@ -34,7 +34,9 @@ #include #include -#include +#if SUPPORT_SETTING_CLOCK_TAI +# include +#endif #ifdef HAVE_CURL # include #endif @@ -56,6 +58,7 @@ ClockTAI::ClockTAI() int ClockTAI::get_offset() { +#if ENABLE_OUTPUT_EDI struct timespec time_now; int err = clock_gettime(CLOCK_REALTIME, &time_now); @@ -81,6 +84,7 @@ int ClockTAI::get_offset() etiLog.level(info) << "Updated TAI-UTC offset to " << m_offset << "s."; } +#endif // ENABLE_OUTPUT_EDI return m_offset; } @@ -226,3 +230,5 @@ void debug_tai_clk() } #endif + + -- cgit v1.2.3