diff options
author | Harald Welte <laforge@gnumonks.org> | 2018-06-28 08:28:52 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2018-06-28 10:30:34 +0200 |
commit | 14c4c498b15485c35abf6fb8ec54eb1e0724bae6 (patch) | |
tree | 0c441da412bbcc6845fc62d8624152e9c0d1af38 /src/timer_clockgettime.c | |
parent | f1e13d6081920b7f65c0ff70c19fb638a7fc86fa (diff) |
Fix embedded (arm-none-eabi) builds
Due to OS#3360, build testing for arm-none-eabi was unfortunately
skipped for a long time. This is a number of fixes that make the
compile test pass again.
Related: OS#3360
Change-Id: I88e3c8e1a8786ca2a6a023b0d27c74be200a8588
Diffstat (limited to 'src/timer_clockgettime.c')
-rw-r--r-- | src/timer_clockgettime.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/timer_clockgettime.c b/src/timer_clockgettime.c index 8d9760c5..7b17fd11 100644 --- a/src/timer_clockgettime.c +++ b/src/timer_clockgettime.c @@ -44,6 +44,9 @@ /*! \file timer_clockgettime.c */ +#include "config.h" +#ifdef HAVE_CLOCK_GETTIME + #include <stdlib.h> #include <stdbool.h> #include <sys/time.h> @@ -135,4 +138,6 @@ void osmo_clock_override_add(clockid_t clk_id, time_t secs, long nsecs) timespecadd(&c->time, &val, &c->time); } +#endif /* HAVE_CLOCK_GETTIME */ + /*! @} */ |