summaryrefslogtreecommitdiffstats
path: root/src/timer_clockgettime.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/timer_clockgettime.c')
-rw-r--r--src/timer_clockgettime.c5
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 */
+
/*! @} */