diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-03-05 17:32:33 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-03-05 17:32:33 +0100 |
commit | 8dad8afa09a3740dd90bd70917ff93a63098e576 (patch) | |
tree | 9b7917169e66fe6c43869f79ad4c3d8fbba56cde /src/ClockTAI.cpp | |
parent | 19431ba192c3b95726c7297c96494ba6397879ef (diff) | |
download | dabmux-8dad8afa09a3740dd90bd70917ff93a63098e576.tar.gz dabmux-8dad8afa09a3740dd90bd70917ff93a63098e576.tar.bz2 dabmux-8dad8afa09a3740dd90bd70917ff93a63098e576.zip |
Compile under OSX
Diffstat (limited to 'src/ClockTAI.cpp')
-rw-r--r-- | src/ClockTAI.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
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 <stdio.h> #include <errno.h> -#include <sys/timex.h> +#if SUPPORT_SETTING_CLOCK_TAI +# include <sys/timex.h> +#endif #ifdef HAVE_CURL # include <curl/curl.h> #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 + + |